diff options
author | Lang Hames <lhames@gmail.com> | 2011-10-18 00:23:49 +0000 |
---|---|---|
committer | Lang Hames <lhames@gmail.com> | 2011-10-18 00:23:49 +0000 |
commit | d8ffe5bb162bf97a7b0a323d2edcf8b83ca5dada (patch) | |
tree | 8b9ff25f14c277e69bad17f42fb0d8140e6cea9f /lib/AsmParser/LLParser.cpp | |
parent | 6248a546f23e7ffa84c171dc364b922e28467275 (diff) | |
download | external_llvm-d8ffe5bb162bf97a7b0a323d2edcf8b83ca5dada.zip external_llvm-d8ffe5bb162bf97a7b0a323d2edcf8b83ca5dada.tar.gz external_llvm-d8ffe5bb162bf97a7b0a323d2edcf8b83ca5dada.tar.bz2 |
Backing out patch. Will refactor to remove the AsmParser dependency on Target.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142323 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AsmParser/LLParser.cpp')
-rw-r--r-- | lib/AsmParser/LLParser.cpp | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/lib/AsmParser/LLParser.cpp b/lib/AsmParser/LLParser.cpp index eb6afd3..cafaab0 100644 --- a/lib/AsmParser/LLParser.cpp +++ b/lib/AsmParser/LLParser.cpp @@ -24,7 +24,6 @@ #include "llvm/ADT/SmallPtrSet.h" #include "llvm/Support/ErrorHandling.h" #include "llvm/Support/raw_ostream.h" -#include "llvm/Target/TargetData.h" using namespace llvm; static std::string getTypeString(Type *T) { @@ -261,14 +260,9 @@ bool LLParser::ParseTargetDefinition() { return false; case lltok::kw_datalayout: Lex.Lex(); - LocTy SpecifierLoc = Lex.getLoc(); if (ParseToken(lltok::equal, "expected '=' after target datalayout") || ParseStringConstant(Str)) return true; - std::string errMsg = TargetData::parseSpecifier(Str); - if (errMsg != "") { - return Error(SpecifierLoc, errMsg); - } M->setDataLayout(Str); return false; } |