diff options
| author | Luc Van Oostenryck <luc.vanoostenryck@gmail.com> | 2017-08-14 05:53:54 +0200 |
|---|---|---|
| committer | Luc Van Oostenryck <luc.vanoostenryck@gmail.com> | 2017-11-17 10:04:37 +0100 |
| commit | 0b37c9aa8bc765719f05755f9452138e33a9509d (patch) | |
| tree | e1f621574160ba7e61f110302efd734a6f944867 /validation/backend | |
| parent | a410611d7af9d20ebd6c9e422fad5ac8c3b4236e (diff) | |
| download | sparse-dev-0b37c9aa8bc765719f05755f9452138e33a9509d.tar.gz | |
llvm: give names easier to debug
LLVM automatically add an numeric suffix for names
automatically created. So, if intermediate names must
be created for a pseudo whose name was, for example, "%R4",
these new names will be "%R41", "%R42".
This is quite annoying because we can't make the distinction
between these names and the original names, (maybe of some other
pseudos whose names were "%R41" & "%R42).
Change this by adding a "." at the end of each name, as this will
then allow to see what the original name was.
Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
Diffstat (limited to 'validation/backend')
| -rw-r--r-- | validation/backend/call-variadic.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/validation/backend/call-variadic.c b/validation/backend/call-variadic.c index b6e40644..4924e3f1 100644 --- a/validation/backend/call-variadic.c +++ b/validation/backend/call-variadic.c @@ -16,10 +16,10 @@ int foo(const char *fmt, int a, long l, int *p) ; ModuleID = '<stdin>' source_filename = "sparse" -define i32 @foo(i8* %ARG1, i32 %ARG2, i64 %ARG3, i32* %ARG4) { +define i32 @foo(i8* %ARG1., i32 %ARG2., i64 %ARG3., i32* %ARG4.) { L0: - %R5 = call i32 (i8*, ...) @print(i8* %ARG1, i32 120, i32 %ARG2, i32 8, i64 %ARG3, i64 0, i32* %ARG4, i8* null) - ret i32 %R5 + %R5. = call i32 (i8*, ...) @print(i8* %ARG1., i32 120, i32 %ARG2., i32 8, i64 %ARG3., i64 0, i32* %ARG4., i8* null) + ret i32 %R5. } declare i32 @print(i8*, ...) |
