Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(574)

Unified Diff: test/Transforms/NaCl/pnacl-abi-internalize-symbols-pso.ll

Issue 939073008: Rebased PNaCl localmods in LLVM to 223109 (Closed)
Patch Set: undo localmod Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « test/Transforms/NaCl/pnacl-abi-internalize-symbols.ll ('k') | test/Transforms/NaCl/pnacl-abi-simplify.ll » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/Transforms/NaCl/pnacl-abi-internalize-symbols-pso.ll
diff --git a/test/Transforms/NaCl/pnacl-abi-internalize-symbols-pso.ll b/test/Transforms/NaCl/pnacl-abi-internalize-symbols-pso.ll
new file mode 100644
index 0000000000000000000000000000000000000000..1331e50a957fb88ffd97ecc6c9f3ecb3ac366536
--- /dev/null
+++ b/test/Transforms/NaCl/pnacl-abi-internalize-symbols-pso.ll
@@ -0,0 +1,22 @@
+; RUN: opt %s -pnacl-abi-simplify-preopt -S | FileCheck %s
+
+; Checks that PNaCl ABI pre-opt simplification correctly internalizes
+; symbols except __pnacl_pso_root.
+
+
+@__pnacl_pso_root = global i32 123
+; CHECK: @__pnacl_pso_root = global i32 123
+
+@global_var = global [4 x i8] c"abcd"
+; CHECK: @global_var = internal global [4 x i8] c"abcd"
+
+
+define void @main() {
+; CHECK: define internal void @main
+ ret void
+}
+
+define external void @foobarbaz() {
+; CHECK: define internal void @foobarbaz
+ ret void
+}
« no previous file with comments | « test/Transforms/NaCl/pnacl-abi-internalize-symbols.ll ('k') | test/Transforms/NaCl/pnacl-abi-simplify.ll » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698