summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2009-06-28 23:01:01 +0000
committerBill Wendling <isanbard@gmail.com>2009-06-28 23:01:01 +0000
commit1835107ed02469fda5cf25b1d5efbb90a042b5bc (patch)
tree7ec1ad602c14e0241e5906c84e33d3407d9d81bd /clang/lib/CodeGen
parentb012ca92ac2a6e298422ae59987a5530faf16d0e (diff)
downloadbcm5719-llvm-1835107ed02469fda5cf25b1d5efbb90a042b5bc.tar.gz
bcm5719-llvm-1835107ed02469fda5cf25b1d5efbb90a042b5bc.zip
Make the StackProtector bitfield use enums instead of obscure numbers.
llvm-svn: 74414
Diffstat (limited to 'clang/lib/CodeGen')
-rw-r--r--clang/lib/CodeGen/CGCall.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CGCall.cpp b/clang/lib/CodeGen/CGCall.cpp
index 61b6737be11..8ff58914cb6 100644
--- a/clang/lib/CodeGen/CGCall.cpp
+++ b/clang/lib/CodeGen/CGCall.cpp
@@ -392,9 +392,9 @@ void CodeGenModule::ConstructAttributeList(const CGFunctionInfo &FI,
if (CompileOpts.NoImplicitFloat)
FuncAttrs |= llvm::Attribute::NoImplicitFloat;
- if (Features.StackProtector == 1)
+ if (Features.getStackProtectorMode() == LangOptions::SSPOn)
FuncAttrs |= llvm::Attribute::StackProtect;
- else if (Features.StackProtector == 2)
+ else if (Features.getStackProtectorMode() == LangOptions::SSPReq)
FuncAttrs |= llvm::Attribute::StackProtectReq;
QualType RetTy = FI.getReturnType();
OpenPOWER on IntegriCloud