[llvm-commits] [llvm] r75787 - /llvm/trunk/lib/Target/XCore/XCoreAsmPrinter.cpp
Richard Osborne
richard at xmos.com
Wed Jul 15 08:36:44 PDT 2009
Author: friedgold
Date: Wed Jul 15 10:36:37 2009
New Revision: 75787
URL: http://llvm.org/viewvc/llvm-project?rev=75787&view=rev
Log:
Remove the xcore-file-directive option now that LLVM has proper support for
emitting file directives with one parameter.
Modified:
llvm/trunk/lib/Target/XCore/XCoreAsmPrinter.cpp
Modified: llvm/trunk/lib/Target/XCore/XCoreAsmPrinter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/XCore/XCoreAsmPrinter.cpp?rev=75787&r1=75786&r2=75787&view=diff
==============================================================================
--- llvm/trunk/lib/Target/XCore/XCoreAsmPrinter.cpp (original)
+++ llvm/trunk/lib/Target/XCore/XCoreAsmPrinter.cpp Wed Jul 15 10:36:37 2009
@@ -41,12 +41,6 @@
STATISTIC(EmittedInsts, "Number of machine instrs printed");
-static cl::opt<std::string> FileDirective("xcore-file-directive", cl::Optional,
- cl::desc("Output a file directive into the assembly file"),
- cl::Hidden,
- cl::value_desc("filename"),
- cl::init(""));
-
static cl::opt<unsigned> MaxThreads("xcore-max-threads", cl::Optional,
cl::desc("Maximum number of threads (for emulation thread-local storage)"),
cl::Hidden,
@@ -71,8 +65,7 @@
void printOperand(const MachineInstr *MI, int opNum);
bool PrintAsmOperand(const MachineInstr *MI, unsigned OpNo,
unsigned AsmVariant, const char *ExtraCode);
-
- void emitFileDirective(const std::string &filename);
+
void emitGlobalDirective(const std::string &name);
void emitExternDirective(const std::string &name);
@@ -127,14 +120,6 @@
}
void XCoreAsmPrinter::
-emitFileDirective(const std::string &name)
-{
- O << "\t.file\t\"";
- PrintEscapedString(name, O);
- O << "\"\n";
-}
-
-void XCoreAsmPrinter::
emitGlobalDirective(const std::string &name)
{
O << TAI->getGlobalDirective() << name;
@@ -418,9 +403,6 @@
bool Result = AsmPrinter::doInitialization(M);
DW = getAnalysisIfAvailable<DwarfWriter>();
- if (!FileDirective.empty())
- emitFileDirective(FileDirective);
-
return Result;
}
More information about the llvm-commits
mailing list