r186218 - Use function attributes to pass along the stack protector buffer size instead of making it a target option.
Bill Wendling
isanbard at gmail.com
Fri Jul 12 15:26:07 PDT 2013
Author: void
Date: Fri Jul 12 17:26:07 2013
New Revision: 186218
URL: http://llvm.org/viewvc/llvm-project?rev=186218&view=rev
Log:
Use function attributes to pass along the stack protector buffer size instead of making it a target option.
Modified:
cfe/trunk/lib/CodeGen/BackendUtil.cpp
cfe/trunk/lib/CodeGen/CGCall.cpp
Modified: cfe/trunk/lib/CodeGen/BackendUtil.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/BackendUtil.cpp?rev=186218&r1=186217&r2=186218&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/BackendUtil.cpp (original)
+++ cfe/trunk/lib/CodeGen/BackendUtil.cpp Fri Jul 12 17:26:07 2013
@@ -458,7 +458,6 @@ TargetMachine *EmitAssemblyHelper::Creat
Options.DisableTailCalls = CodeGenOpts.DisableTailCalls;
Options.TrapFuncName = CodeGenOpts.TrapFuncName;
Options.PositionIndependentExecutable = LangOpts.PIELevel != 0;
- Options.SSPBufferSize = CodeGenOpts.SSPBufferSize;
Options.EnableSegmentedStacks = CodeGenOpts.EnableSegmentedStacks;
TargetMachine *TM = TheTarget->createTargetMachine(Triple, TargetOpts.CPU,
Modified: cfe/trunk/lib/CodeGen/CGCall.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGCall.cpp?rev=186218&r1=186217&r2=186218&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGCall.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGCall.cpp Fri Jul 12 17:26:07 2013
@@ -1070,6 +1070,8 @@ void CodeGenModule::ConstructAttributeLi
CodeGenOpts.UnsafeFPMath ? "true" : "false");
FuncAttrs.addAttribute("use-soft-float",
CodeGenOpts.SoftFloat ? "true" : "false");
+ FuncAttrs.addAttribute("ssp-buffer-size",
+ llvm::utostr(CodeGenOpts.SSPBufferSize));
}
QualType RetTy = FI.getReturnType();
More information about the cfe-commits
mailing list