From 4ebe3e4c811a376c423a544f5e76ee2e96533324 Mon Sep 17 00:00:00 2001 From: Bill Wendling Date: Sun, 28 Jun 2009 23:01:01 +0000 Subject: Make the StackProtector bitfield use enums instead of obscure numbers. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@74414 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Frontend/InitPreprocessor.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/Frontend/InitPreprocessor.cpp') diff --git a/lib/Frontend/InitPreprocessor.cpp b/lib/Frontend/InitPreprocessor.cpp index 554868fd27..05f9607355 100644 --- a/lib/Frontend/InitPreprocessor.cpp +++ b/lib/Frontend/InitPreprocessor.cpp @@ -424,9 +424,9 @@ static void InitializePredefinedMacros(const TargetInfo &TI, PickFP(&TI.getLongDoubleFormat(), -1/*FIXME*/, 17, 21, 33, 36)); DefineBuiltinMacro(Buf, MacroBuf); - if (LangOpts.StackProtector == 1) + if (LangOpts.getStackProtectorMode() == LangOptions::SSPOn) DefineBuiltinMacro(Buf, "__SSP__=1"); - else if (LangOpts.StackProtector == 2) + else if (LangOpts.getStackProtectorMode() == LangOptions::SSPReq) DefineBuiltinMacro(Buf, "__SSP_ALL__=2"); // Get other target #defines. -- cgit v1.2.3