diff options
| author | Chris Lattner <sabre@nondot.org> | 2011-06-20 04:01:35 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2011-06-20 04:01:35 +0000 |
| commit | e64d7ba153cae6c196ece68bad4536494e97ccb6 (patch) | |
| tree | ea88bec822eba15c1e58b69cf16164876a3748d8 /clang/test/CodeGen/global-init.c | |
| parent | cc19efaa97b3e1c2988042d716577831e813fdb9 (diff) | |
| download | bcm5719-llvm-e64d7ba153cae6c196ece68bad4536494e97ccb6.tar.gz bcm5719-llvm-e64d7ba153cae6c196ece68bad4536494e97ccb6.zip | |
Update to match mainline ConstantStruct::get API change. Also, use
ConvertType on InitListExprs as they are being converted. This is
needed for a forthcoming patch, and improves the IR generated anyway
(see additional type names in testcases).
This patch also converts a bunch of std::vector's in CGObjCMac to use
C arrays. There are a ton more that should be converted as well.
llvm-svn: 133413
Diffstat (limited to 'clang/test/CodeGen/global-init.c')
| -rw-r--r-- | clang/test/CodeGen/global-init.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/test/CodeGen/global-init.c b/clang/test/CodeGen/global-init.c index 351ca9e35ac..f8d29751795 100644 --- a/clang/test/CodeGen/global-init.c +++ b/clang/test/CodeGen/global-init.c @@ -27,12 +27,12 @@ struct ManyFields { int f; }; -// CHECK: global %0 { i32 1, i32 2, i32 0, i8 0, i32 0, i32 0 } +// CHECK: global %struct.ManyFields { i32 1, i32 2, i32 0, i8 0, i32 0, i32 0 } struct ManyFields FewInits = {1, 2}; // PR6766 -// CHECK: @l = global %1 { [24 x i8] c"f\00\00\00o\00\00\00o\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00", i32 1 } +// CHECK: @l = global %0 { [24 x i8] c"f\00\00\00o\00\00\00o\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00", i32 1 } typedef __WCHAR_TYPE__ wchar_t; struct K { wchar_t L[6]; |

