diff options
author | Karl Schimpf <kschimpf@google.com> | 2013-07-03 11:02:54 -0700 |
---|---|---|
committer | Karl Schimpf <kschimpf@google.com> | 2013-07-03 11:02:54 -0700 |
commit | c68c47198c0e0a610e49eaf072429b9214fca04f (patch) | |
tree | cfa16f856e7debe229f1d18da1e874057743d36d /test/NaCl/Bitcode | |
parent | c5f0da9f2a5ffb5d9e8803839655f2f3d6972d83 (diff) |
Don't generate Type ID's for global variable fields.
Also removed local MaxGlobalType in WriteModuleInfo because it calls VE.getTypeID(GV->getTYpe(), which is no longer defined for globals.
Also noted that MaxAlignment in WriteModuleInfo was no longer used and removed it.
BUG= https://code.google.com/p/nativeclient/issues/detail?id=3541
R=mseaborn@chromium.org
Review URL: https://codereview.chromium.org/18185005
Diffstat (limited to 'test/NaCl/Bitcode')
-rw-r--r-- | test/NaCl/Bitcode/globalvars.ll | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/test/NaCl/Bitcode/globalvars.ll b/test/NaCl/Bitcode/globalvars.ll index c6e6f2f17a..fd1f8eead2 100644 --- a/test/NaCl/Bitcode/globalvars.ll +++ b/test/NaCl/Bitcode/globalvars.ll @@ -4,9 +4,17 @@ ; Test that we generate appropriate bitcode values for global variables. +; Make sure that no struct/array types are generated by the global variables. +; BC: <TYPE_BLOCK_ID +; BC-NEXT: <NUMENTRY +; BC-NEXT: <VOID/> +; BC-NEXT: <FUNCTION +; BC-NEXT: <POINTER +; BC-NEXT: </TYPE_BLOCK_ID> + ; Make sure that the function declaration for function func (below) ; appears before the global variables block. -; BC: <FUNCTION op0=5 op1=0 op2=0 op3=0/> +; BC: <FUNCTION op0=2 op1=0 op2=0 op3=0/> ; Make sure we begin the globals block after function declarations. ; BC-NEXT: <GLOBALVAR_BLOCK |