r209017 - Missed a ! in the if statement when these were being set and the options

Eric Christopher echristo at gmail.com
Fri May 16 13:46:14 PDT 2014


Author: echristo
Date: Fri May 16 15:46:14 2014
New Revision: 209017

URL: http://llvm.org/viewvc/llvm-project?rev=209017&view=rev
Log:
Missed a ! in the if statement when these were being set and the options
are inverted in clang and llvm.

I'll attempt to get a testcase for this that doesn't involve compiling to .s,
but it's unlikely.

Modified:
    cfe/trunk/lib/CodeGen/BackendUtil.cpp

Modified: cfe/trunk/lib/CodeGen/BackendUtil.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/BackendUtil.cpp?rev=209017&r1=209016&r2=209017&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/BackendUtil.cpp (original)
+++ cfe/trunk/lib/CodeGen/BackendUtil.cpp Fri May 16 15:46:14 2014
@@ -494,7 +494,7 @@ TargetMachine *EmitAssemblyHelper::Creat
 
   Options.MCOptions.MCRelaxAll = CodeGenOpts.RelaxAll;
   Options.MCOptions.MCSaveTempLabels = CodeGenOpts.SaveTempLabels;
-  Options.MCOptions.MCUseDwarfDirectory = CodeGenOpts.NoDwarfDirectoryAsm;
+  Options.MCOptions.MCUseDwarfDirectory = !CodeGenOpts.NoDwarfDirectoryAsm;
   Options.MCOptions.MCNoExecStack = CodeGenOpts.NoExecStack;
 
   TargetMachine *TM = TheTarget->createTargetMachine(Triple, TargetOpts.CPU,





More information about the cfe-commits mailing list