[llvm] r188198 - Move stack protector names to the same place.
Bill Wendling
isanbard at gmail.com
Mon Aug 12 13:09:37 PDT 2013
Author: void
Date: Mon Aug 12 15:09:37 2013
New Revision: 188198
URL: http://llvm.org/viewvc/llvm-project?rev=188198&view=rev
Log:
Move stack protector names to the same place.
Modified:
llvm/trunk/lib/Transforms/IPO/Internalize.cpp
Modified: llvm/trunk/lib/Transforms/IPO/Internalize.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/IPO/Internalize.cpp?rev=188198&r1=188197&r2=188198&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/IPO/Internalize.cpp (original)
+++ llvm/trunk/lib/Transforms/IPO/Internalize.cpp Mon Aug 12 15:09:37 2013
@@ -114,11 +114,6 @@ bool InternalizePass::runOnModule(Module
CallGraphNode *ExternalNode = CG ? CG->getExternalCallingNode() : 0;
bool Changed = false;
- // Never internalize functions which code-gen might insert.
- // FIXME: We should probably add this (and the __stack_chk_guard) via some
- // type of call-back in CodeGen.
- ExternalNames.insert("__stack_chk_fail");
-
SmallPtrSet<GlobalValue *, 8> Used;
collectUsedGlobalVariables(M, Used, false);
@@ -166,6 +161,9 @@ bool InternalizePass::runOnModule(Module
ExternalNames.insert("llvm.global.annotations");
// Never internalize symbols code-gen inserts.
+ // FIXME: We should probably add this (and the __stack_chk_guard) via some
+ // type of call-back in CodeGen.
+ ExternalNames.insert("__stack_chk_fail");
ExternalNames.insert("__stack_chk_guard");
// Mark all global variables with initializers that are not in the api as
More information about the llvm-commits
mailing list