[llvm-commits] [llvm-gcc-4.2] r113361 - /llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp
Duncan Sands
baldrick at free.fr
Wed Sep 8 08:04:57 PDT 2010
Author: baldrick
Date: Wed Sep 8 10:04:57 2010
New Revision: 113361
URL: http://llvm.org/viewvc/llvm-project?rev=113361&view=rev
Log:
Forgot this somehow in previous patch: if llvm.eh.catch.all.value is not
used anywhere then the optimizers will delete it, however it may still be
needed by the URoR fixup code in DwarfEHPrepare.
Modified:
llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp
Modified: llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp?rev=113361&r1=113360&r2=113361&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp (original)
+++ llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp Wed Sep 8 10:04:57 2010
@@ -2168,6 +2168,7 @@
GlobalVariable::LinkOnceAnyLinkage,
Init, "llvm.eh.catch.all.value");
CatchAll->setSection("llvm.metadata");
+ AttributeUsedGlobals.insert(CatchAll);
}
}
More information about the llvm-commits
mailing list