[cfe-commits] r68165 - /cfe/trunk/lib/Driver/Tools.cpp
Daniel Dunbar
daniel at zuster.org
Tue Mar 31 17:27:44 PDT 2009
Author: ddunbar
Date: Tue Mar 31 19:27:44 2009
New Revision: 68165
URL: http://llvm.org/viewvc/llvm-project?rev=68165&view=rev
Log:
Tweak darwin::Assemble and add a FIXME.
Modified:
cfe/trunk/lib/Driver/Tools.cpp
Modified: cfe/trunk/lib/Driver/Tools.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/Tools.cpp?rev=68165&r1=68164&r2=68165&view=diff
==============================================================================
--- cfe/trunk/lib/Driver/Tools.cpp (original)
+++ cfe/trunk/lib/Driver/Tools.cpp Tue Mar 31 19:27:44 2009
@@ -962,10 +962,15 @@
const InputInfo &Input = Inputs[0];
// Bit of a hack, this is only used for original inputs.
+ //
+ // FIXME: This is broken for preprocessed .s inputs.
if (Input.isFilename() &&
- strcmp(Input.getFilename(), Input.getBaseInput()) == 0 &&
- Args.hasArg(options::OPT_g_Group))
- CmdArgs.push_back("--gstabs");
+ strcmp(Input.getFilename(), Input.getBaseInput()) == 0) {
+ if (Args.hasArg(options::OPT_gstabs))
+ CmdArgs.push_back("--gstabs");
+ else if (Args.hasArg(options::OPT_g_Group))
+ CmdArgs.push_back("--gdwarf2");
+ }
// Derived from asm spec.
CmdArgs.push_back("-arch");
More information about the cfe-commits
mailing list