[llvm-commits] [llvm] r140318 - /llvm/trunk/lib/CodeGen/ShadowStackGC.cpp

Bill Wendling isanbard at gmail.com
Thu Sep 22 10:56:40 PDT 2011


Author: void
Date: Thu Sep 22 12:56:40 2011
New Revision: 140318

URL: http://llvm.org/viewvc/llvm-project?rev=140318&view=rev
Log:
Use the C personality function instead of the C++ personality function.

Modified:
    llvm/trunk/lib/CodeGen/ShadowStackGC.cpp

Modified: llvm/trunk/lib/CodeGen/ShadowStackGC.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/ShadowStackGC.cpp?rev=140318&r1=140317&r2=140318&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/ShadowStackGC.cpp (original)
+++ llvm/trunk/lib/CodeGen/ShadowStackGC.cpp Thu Sep 22 12:56:40 2011
@@ -145,11 +145,9 @@
         BasicBlock *CleanupBB = BasicBlock::Create(C, CleanupBBName, &F);
         Type *ExnTy = StructType::get(Type::getInt8PtrTy(C),
                                       Type::getInt32Ty(C), NULL);
-        // FIXME: Assuming the C++ personality function probably isn't the best
-        //        thing in the world.
         Constant *PersFn =
           F.getParent()->
-          getOrInsertFunction("__gxx_personality_v0",
+          getOrInsertFunction("__gcc_personality_v0",
                               FunctionType::get(Type::getInt32Ty(C), true));
         LandingPadInst *LPad = LandingPadInst::Create(ExnTy, PersFn, 1,
                                                       "cleanup.lpad",





More information about the llvm-commits mailing list