summaryrefslogtreecommitdiffstats
path: root/llvm/tools
diff options
context:
space:
mode:
authorKevin Enderby <enderby@apple.com>2009-07-20 20:25:37 +0000
committerKevin Enderby <enderby@apple.com>2009-07-20 20:25:37 +0000
commitee5513582d50d311dc9172b6df0632c04184ca37 (patch)
tree9379c2417de51c51873c261e2a2101d8490e8da7 /llvm/tools
parent2b11c7de4ae182496438e166cb6758d41b6e1740 (diff)
downloadbcm5719-llvm-ee5513582d50d311dc9172b6df0632c04184ca37.tar.gz
bcm5719-llvm-ee5513582d50d311dc9172b6df0632c04184ca37.zip
Removed the DumpSymbolsandMacros and LoadSymbolsandMacros MCStreamer API as
the parsing of the .dump and .load should be done in the assembly parser and not have any need for an MCStreamer API. Changed the code for now so these just produce an error saying these specific directives are not yet implemented since they are likely no longer used and may never need to be implemented. llvm-svn: 76462
Diffstat (limited to 'llvm/tools')
-rw-r--r--llvm/tools/llvm-mc/AsmParser.cpp14
-rw-r--r--llvm/tools/llvm-mc/AsmParser.h2
2 files changed, 9 insertions, 7 deletions
diff --git a/llvm/tools/llvm-mc/AsmParser.cpp b/llvm/tools/llvm-mc/AsmParser.cpp
index 066879ff48d..1b9ca052a31 100644
--- a/llvm/tools/llvm-mc/AsmParser.cpp
+++ b/llvm/tools/llvm-mc/AsmParser.cpp
@@ -539,9 +539,9 @@ bool AsmParser::ParseStatement() {
if (!strcmp(IDVal, ".include"))
return ParseDirectiveInclude();
if (!strcmp(IDVal, ".dump"))
- return ParseDirectiveDarwinDumpOrLoad(/*IsDump=*/true);
+ return ParseDirectiveDarwinDumpOrLoad(IDLoc, /*IsDump=*/true);
if (!strcmp(IDVal, ".load"))
- return ParseDirectiveDarwinDumpOrLoad(/*IsLoad=*/false);
+ return ParseDirectiveDarwinDumpOrLoad(IDLoc, /*IsLoad=*/false);
Warning(IDLoc, "ignoring directive for now");
EatToEndOfStatement();
@@ -1197,11 +1197,11 @@ bool AsmParser::ParseDirectiveInclude() {
/// ParseDirectiveDarwinDumpOrLoad
/// ::= ( .dump | .load ) "filename"
-bool AsmParser::ParseDirectiveDarwinDumpOrLoad(bool IsDump) {
+bool AsmParser::ParseDirectiveDarwinDumpOrLoad(SMLoc IDLoc, bool IsDump) {
if (Lexer.isNot(asmtok::String))
return TokError("expected string in '.dump' or '.load' directive");
- const char *Str = Lexer.getCurStrVal();
+ Lexer.getCurStrVal();
Lexer.Lex();
@@ -1210,10 +1210,12 @@ bool AsmParser::ParseDirectiveDarwinDumpOrLoad(bool IsDump) {
Lexer.Lex();
+ // FIXME: If/when .dump and .load are implemented they will be done in the
+ // the assembly parser and not have any need for an MCStreamer API.
if (IsDump)
- Out.DumpSymbolsandMacros(Str);
+ Warning(IDLoc, "ignoring directive .dump for now");
else
- Out.LoadSymbolsandMacros(Str);
+ Warning(IDLoc, "ignoring directive .load for now");
return false;
}
diff --git a/llvm/tools/llvm-mc/AsmParser.h b/llvm/tools/llvm-mc/AsmParser.h
index d9f4b4c197b..b3190b124bd 100644
--- a/llvm/tools/llvm-mc/AsmParser.h
+++ b/llvm/tools/llvm-mc/AsmParser.h
@@ -127,7 +127,7 @@ private:
// Darwin specific ".subsections_via_symbols"
bool ParseDirectiveDarwinSubsectionsViaSymbols();
// Darwin specific .dump and .load
- bool ParseDirectiveDarwinDumpOrLoad(bool IsDump);
+ bool ParseDirectiveDarwinDumpOrLoad(SMLoc IDLoc, bool IsDump);
bool ParseDirectiveAbort(); // ".abort"
bool ParseDirectiveInclude(); // ".include"
OpenPOWER on IntegriCloud