aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/AsmParser/LLParser.cpp
diff options
context:
space:
mode:
authorTeresa Johnson <tejohnson@google.com>2016-03-30 15:16:04 +0000
committerTeresa Johnson <tejohnson@google.com>2016-03-30 15:16:04 +0000
commit20beeea24a6a11cac6e59dee8250b72fe24b6871 (patch)
tree5b2eec5243703856e1abb942b38316b66b0a214d /llvm/lib/AsmParser/LLParser.cpp
parentb87ffe851903721481d953d37e7c654cd79cc22e (diff)
downloadllvm-20beeea24a6a11cac6e59dee8250b72fe24b6871.zip
llvm-20beeea24a6a11cac6e59dee8250b72fe24b6871.tar.gz
llvm-20beeea24a6a11cac6e59dee8250b72fe24b6871.tar.bz2
Revert "[ThinLTO] Serialize the Module SourceFileName to/from LLVM assembly"
This reverts commit r264869. I am seeing Windows bot failures due to the "\" in the path being mishandled at some point (seems to be interpreted wrongly at some point and llvm-as | llvm-dis is yielding some junk characters). Need to investigate. llvm-svn: 264871
Diffstat (limited to 'llvm/lib/AsmParser/LLParser.cpp')
-rw-r--r--llvm/lib/AsmParser/LLParser.cpp17
1 files changed, 0 insertions, 17 deletions
diff --git a/llvm/lib/AsmParser/LLParser.cpp b/llvm/lib/AsmParser/LLParser.cpp
index 39c6135..76bd99e 100644
--- a/llvm/lib/AsmParser/LLParser.cpp
+++ b/llvm/lib/AsmParser/LLParser.cpp
@@ -239,10 +239,6 @@ bool LLParser::ParseTopLevelEntities() {
case lltok::kw_define: if (ParseDefine()) return true; break;
case lltok::kw_module: if (ParseModuleAsm()) return true; break;
case lltok::kw_target: if (ParseTargetDefinition()) return true; break;
- case lltok::kw_source_filename:
- if (ParseSourceFileName())
- return true;
- break;
case lltok::kw_deplibs: if (ParseDepLibs()) return true; break;
case lltok::LocalVarID: if (ParseUnnamedType()) return true; break;
case lltok::LocalVar: if (ParseNamedType()) return true; break;
@@ -340,19 +336,6 @@ bool LLParser::ParseTargetDefinition() {
}
/// toplevelentity
-/// ::= 'source_filename' '=' STRINGCONSTANT
-bool LLParser::ParseSourceFileName() {
- assert(Lex.getKind() == lltok::kw_source_filename);
- std::string Str;
- Lex.Lex();
- if (ParseToken(lltok::equal, "expected '=' after source_filename") ||
- ParseStringConstant(Str))
- return true;
- M->setSourceFileName(Str);
- return false;
-}
-
-/// toplevelentity
/// ::= 'deplibs' '=' '[' ']'
/// ::= 'deplibs' '=' '[' STRINGCONSTANT (',' STRINGCONSTANT)* ']'
/// FIXME: Remove in 4.0. Currently parse, but ignore.