aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target/XCore/XCoreAsmPrinter.cpp
diff options
context:
space:
mode:
authorRichard Osborne <richard@xmos.com>2009-07-15 15:36:37 +0000
committerRichard Osborne <richard@xmos.com>2009-07-15 15:36:37 +0000
commitf301c2299c95a1f60e879be4a3b0179ed3935d44 (patch)
tree9a3778103405f8395534499b4ccd6b63c688041d /lib/Target/XCore/XCoreAsmPrinter.cpp
parent6e68cd96b2c76c80bfff07e8121ba19691ec1276 (diff)
downloadexternal_llvm-f301c2299c95a1f60e879be4a3b0179ed3935d44.zip
external_llvm-f301c2299c95a1f60e879be4a3b0179ed3935d44.tar.gz
external_llvm-f301c2299c95a1f60e879be4a3b0179ed3935d44.tar.bz2
Remove the xcore-file-directive option now that LLVM has proper support for
emitting file directives with one parameter. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75787 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/XCore/XCoreAsmPrinter.cpp')
-rw-r--r--lib/Target/XCore/XCoreAsmPrinter.cpp20
1 files changed, 1 insertions, 19 deletions
diff --git a/lib/Target/XCore/XCoreAsmPrinter.cpp b/lib/Target/XCore/XCoreAsmPrinter.cpp
index 6256c8a..d829d9f 100644
--- a/lib/Target/XCore/XCoreAsmPrinter.cpp
+++ b/lib/Target/XCore/XCoreAsmPrinter.cpp
@@ -41,12 +41,6 @@ using namespace llvm;
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 @@ namespace {
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 @@ static void PrintEscapedString(const std::string &Str,
}
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 XCoreAsmPrinter::doInitialization(Module &M) {
bool Result = AsmPrinter::doInitialization(M);
DW = getAnalysisIfAvailable<DwarfWriter>();
- if (!FileDirective.empty())
- emitFileDirective(FileDirective);
-
return Result;
}