aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJF Bastien <jfb@chromium.org>2013-10-22 10:16:49 -0700
committerJF Bastien <jfb@chromium.org>2013-10-22 10:16:49 -0700
commit7287c45c13dc887cebe3db6abfa2f1080186bb97 (patch)
treed069a03bd84ecbebe825851feec883d38844bac3 /test
parent7c801d10ad719a7e0b875943b18504d7575524d9 (diff)
Make sure flatten globals doesn't insert uses of globals that previously had no uses.
This was the deeper cause of the issues I fixed in https://codereview.chromium.org/33233002/ and is therefore a better fix. (The problem was that StripDeadPrototypes was not stripping a variable that was actually dead because the bitcast constexpr inserted by FlattenGlobals referred to it.) I reverted most of that CL's changes, though not the comment and test cleanup. R=dschuff@chromium.org TEST= pnacl-clang++ pnacl/git/libcxx/test/input.output/iostream.objects/narrow.stream.objects/clog.pass.cpp -stdlib=libc++ Review URL: https://codereview.chromium.org/34843003
Diffstat (limited to 'test')
-rw-r--r--test/Transforms/NaCl/globalcleanup.ll8
1 files changed, 0 insertions, 8 deletions
diff --git a/test/Transforms/NaCl/globalcleanup.ll b/test/Transforms/NaCl/globalcleanup.ll
index 7e1fa3d8a5..5f976e22da 100644
--- a/test/Transforms/NaCl/globalcleanup.ll
+++ b/test/Transforms/NaCl/globalcleanup.ll
@@ -16,14 +16,6 @@
; CHECK: @weak_gv = internal global
@weak_gv = weak global i32 0
-; Libc++'s declarations of iostream values are purely ``extern`` and
-; unused otherwise which led to a bug when used as ``(void)std::clog``:
-; the global would survive as ``external global`` post-link but without
-; a proper definition. Global cleanup should take care of it.
-; GV-NOT: ostream
-%"class.fake_ostream" = type { i32 }
-@ostream = external global %"class.fake_ostream"
-
; CHECK: define void @_start
define void @_start() {
ret void