[llvm-branch-commits] [llvm-gcc-branch] r101209 - /llvm-gcc-4.2/branches/Apple/Morbo/gcc/llvm-convert.cpp
Bill Wendling
isanbard at gmail.com
Tue Apr 13 19:24:04 PDT 2010
Author: void
Date: Tue Apr 13 21:24:04 2010
New Revision: 101209
URL: http://llvm.org/viewvc/llvm-project?rev=101209&view=rev
Log:
Revert r101199. It's breaking MultiSource/Applications/kimwitu++/kc.
Modified:
llvm-gcc-4.2/branches/Apple/Morbo/gcc/llvm-convert.cpp
Modified: llvm-gcc-4.2/branches/Apple/Morbo/gcc/llvm-convert.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/branches/Apple/Morbo/gcc/llvm-convert.cpp?rev=101209&r1=101208&r2=101209&view=diff
==============================================================================
--- llvm-gcc-4.2/branches/Apple/Morbo/gcc/llvm-convert.cpp (original)
+++ llvm-gcc-4.2/branches/Apple/Morbo/gcc/llvm-convert.cpp Tue Apr 13 21:24:04 2010
@@ -2069,8 +2069,6 @@
std::vector<Value*> Args;
std::vector<struct eh_region *> Handlers;
- static Value *CatchAll = 0;
-
for (unsigned i = 1; i < LandingPads.size(); ++i) {
BasicBlock *LandingPad = LandingPads[i];
@@ -2098,6 +2096,8 @@
foreach_reachable_handler(i, false, AddHandler, &Handlers);
bool HasCleanup = false;
+ static Value *CatchAll = 0;
+
for (std::vector<struct eh_region *>::iterator I = Handlers.begin(),
E = Handlers.end(); I != E; ++I) {
struct eh_region *region = *I;
@@ -2129,7 +2129,7 @@
Constant::getNullValue(Type::getInt8PtrTy(Context));
CatchAll = new GlobalVariable(*TheModule, Init->getType(), true,
- GlobalVariable::PrivateLinkage,
+ GlobalVariable::LinkOnceAnyLinkage,
Init, ".llvm.eh.catch.all.value");
}
@@ -2171,7 +2171,7 @@
Init = cast<Constant>(Emit(catch_all_type, 0));
CatchAll = new GlobalVariable(*TheModule, Init->getType(), true,
- GlobalVariable::PrivateLinkage,
+ GlobalVariable::LinkOnceAnyLinkage,
Init, ".llvm.eh.catch.all.value");
}
More information about the llvm-branch-commits
mailing list