diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2015-08-14 13:31:17 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2015-08-14 13:31:17 +0000 |
commit | 90eb70c8a76db399d9128a4f70af8cd393374694 (patch) | |
tree | 4e14ff48776f0434aaf21deed18abe88d4f70103 /llvm/lib/Target/AArch64/AsmParser/AArch64AsmParser.cpp | |
parent | 078ab134ea73c01059acaa45f1d52d964727b612 (diff) | |
download | bcm5719-llvm-90eb70c8a76db399d9128a4f70af8cd393374694.tar.gz bcm5719-llvm-90eb70c8a76db399d9128a4f70af8cd393374694.zip |
Centralize the information about which object format we are using.
Other than some places that were handling unknown as ELF, this should
have no change. The test updates are because we were detecting
arm-coff or x86_64-win64-coff as ELF targets before.
It is not clear if the enum should live on the Triple. At least now it lives
in a single location and should be easier to move somewhere else.
llvm-svn: 245047
Diffstat (limited to 'llvm/lib/Target/AArch64/AsmParser/AArch64AsmParser.cpp')
-rw-r--r-- | llvm/lib/Target/AArch64/AsmParser/AArch64AsmParser.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/Target/AArch64/AsmParser/AArch64AsmParser.cpp b/llvm/lib/Target/AArch64/AsmParser/AArch64AsmParser.cpp index 9292f660735..7d7a09f2694 100644 --- a/llvm/lib/Target/AArch64/AsmParser/AArch64AsmParser.cpp +++ b/llvm/lib/Target/AArch64/AsmParser/AArch64AsmParser.cpp @@ -4055,10 +4055,10 @@ bool AArch64AsmParser::MatchAndEmitInstruction(SMLoc IDLoc, unsigned &Opcode, /// ParseDirective parses the arm specific directives bool AArch64AsmParser::ParseDirective(AsmToken DirectiveID) { - const MCObjectFileInfo::Environment Format = - getContext().getObjectFileInfo()->getObjectFileType(); - bool IsMachO = Format == MCObjectFileInfo::IsMachO; - bool IsCOFF = Format == MCObjectFileInfo::IsCOFF; + Triple::ObjectFormatType Format = + getContext().getObjectFileInfo()->getTargetTriple().getObjectFormat(); + bool IsMachO = Format == Triple::MachO; + bool IsCOFF = Format == Triple::COFF; StringRef IDVal = DirectiveID.getIdentifier(); SMLoc Loc = DirectiveID.getLoc(); |