Tweak darwin::Assemble and add a FIXME.

llvm-svn: 68165
This commit is contained in:
Daniel Dunbar 2009-04-01 00:27:44 +00:00
parent 0df7051783
commit 5c9c118600
1 changed files with 8 additions and 3 deletions

View File

@ -962,10 +962,15 @@ void darwin::Assemble::ConstructJob(Compilation &C, const JobAction &JA,
const InputInfo &Input = Inputs[0]; const InputInfo &Input = Inputs[0];
// Bit of a hack, this is only used for original inputs. // Bit of a hack, this is only used for original inputs.
//
// FIXME: This is broken for preprocessed .s inputs.
if (Input.isFilename() && if (Input.isFilename() &&
strcmp(Input.getFilename(), Input.getBaseInput()) == 0 && strcmp(Input.getFilename(), Input.getBaseInput()) == 0) {
Args.hasArg(options::OPT_g_Group)) if (Args.hasArg(options::OPT_gstabs))
CmdArgs.push_back("--gstabs"); CmdArgs.push_back("--gstabs");
else if (Args.hasArg(options::OPT_g_Group))
CmdArgs.push_back("--gdwarf2");
}
// Derived from asm spec. // Derived from asm spec.
CmdArgs.push_back("-arch"); CmdArgs.push_back("-arch");