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.

llvm-svn: 209017
This commit is contained in:
Eric Christopher 2014-05-16 20:46:14 +00:00
parent 4fc3cdd054
commit e76eee4638
1 changed files with 1 additions and 1 deletions

View File

@ -494,7 +494,7 @@ TargetMachine *EmitAssemblyHelper::CreateTargetMachine(bool MustCreateTM) {
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,