[llvm] r285272 - [AVR] Compile the disassembler
Dylan McKay via llvm-commits
llvm-commits at lists.llvm.org
Thu Oct 27 01:09:16 PDT 2016
Author: dylanmckay
Date: Thu Oct 27 03:09:15 2016
New Revision: 285272
URL: http://llvm.org/viewvc/llvm-project?rev=285272&view=rev
Log:
[AVR] Compile the disassembler
This also updates references of 'TheAVRTarget' to the new
'getTheAVRTarget()' method.
Modified:
llvm/trunk/lib/Target/AVR/CMakeLists.txt
llvm/trunk/lib/Target/AVR/Disassembler/AVRDisassembler.cpp
llvm/trunk/lib/Target/AVR/MCTargetDesc/AVRMCTargetDesc.cpp
Modified: llvm/trunk/lib/Target/AVR/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/AVR/CMakeLists.txt?rev=285272&r1=285271&r2=285272&view=diff
==============================================================================
--- llvm/trunk/lib/Target/AVR/CMakeLists.txt (original)
+++ llvm/trunk/lib/Target/AVR/CMakeLists.txt Thu Oct 27 03:09:15 2016
@@ -25,6 +25,7 @@ add_llvm_target(AVRCodeGen
add_dependencies(LLVMAVRCodeGen intrinsics_gen)
add_subdirectory(AsmParser)
+add_subdirectory(Disassembler)
add_subdirectory(InstPrinter)
add_subdirectory(MCTargetDesc)
add_subdirectory(TargetInfo)
Modified: llvm/trunk/lib/Target/AVR/Disassembler/AVRDisassembler.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/AVR/Disassembler/AVRDisassembler.cpp?rev=285272&r1=285271&r2=285272&view=diff
==============================================================================
--- llvm/trunk/lib/Target/AVR/Disassembler/AVRDisassembler.cpp (original)
+++ llvm/trunk/lib/Target/AVR/Disassembler/AVRDisassembler.cpp Thu Oct 27 03:09:15 2016
@@ -45,10 +45,6 @@ public:
};
}
-namespace llvm {
-extern Target TheAVRTarget;
-}
-
static MCDisassembler *createAVRDisassembler(const Target &T,
const MCSubtargetInfo &STI,
MCContext &Ctx) {
@@ -58,7 +54,7 @@ static MCDisassembler *createAVRDisassem
extern "C" void LLVMInitializeAVRDisassembler() {
// Register the disassembler.
- TargetRegistry::RegisterMCDisassembler(TheAVRTarget,
+ TargetRegistry::RegisterMCDisassembler(getTheAVRTarget(),
createAVRDisassembler);
}
Modified: llvm/trunk/lib/Target/AVR/MCTargetDesc/AVRMCTargetDesc.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/AVR/MCTargetDesc/AVRMCTargetDesc.cpp?rev=285272&r1=285271&r2=285272&view=diff
==============================================================================
--- llvm/trunk/lib/Target/AVR/MCTargetDesc/AVRMCTargetDesc.cpp (original)
+++ llvm/trunk/lib/Target/AVR/MCTargetDesc/AVRMCTargetDesc.cpp Thu Oct 27 03:09:15 2016
@@ -102,7 +102,7 @@ extern "C" void LLVMInitializeAVRTargetM
createAVRMCInstPrinter);
// Register the MC Code Emitter
- TargetRegistry::RegisterMCCodeEmitter(TheAVRTarget, createAVRMCCodeEmitter);
+ TargetRegistry::RegisterMCCodeEmitter(getTheAVRTarget(), createAVRMCCodeEmitter);
// Register the ELF streamer
TargetRegistry::RegisterELFStreamer(getTheAVRTarget(), createMCStreamer);
More information about the llvm-commits
mailing list