diff options
Diffstat (limited to 'lib/Target/IA64')
-rw-r--r-- | lib/Target/IA64/IA64TargetMachine.cpp | 5 | ||||
-rw-r--r-- | lib/Target/IA64/IA64TargetMachine.h | 9 |
2 files changed, 9 insertions, 5 deletions
diff --git a/lib/Target/IA64/IA64TargetMachine.cpp b/lib/Target/IA64/IA64TargetMachine.cpp index 0f7821f5af..d65ad3c4e1 100644 --- a/lib/Target/IA64/IA64TargetMachine.cpp +++ b/lib/Target/IA64/IA64TargetMachine.cpp @@ -11,6 +11,7 @@ // //===----------------------------------------------------------------------===// +#include "IA64TargetAsmInfo.h" #include "IA64TargetMachine.h" #include "IA64.h" #include "llvm/Module.h" @@ -29,6 +30,10 @@ namespace { RegisterTarget<IA64TargetMachine> X("ia64", " IA-64 (Itanium)"); } +const TargetAsmInfo *IA64TargetMachine::createTargetAsmInfo() const { + return new IA64TargetAsmInfo(*this); +} + unsigned IA64TargetMachine::getModuleMatchQuality(const Module &M) { // we match [iI][aA]*64 bool seenIA64=false; diff --git a/lib/Target/IA64/IA64TargetMachine.h b/lib/Target/IA64/IA64TargetMachine.h index 61ac05f6a2..538a3303d3 100644 --- a/lib/Target/IA64/IA64TargetMachine.h +++ b/lib/Target/IA64/IA64TargetMachine.h @@ -19,7 +19,6 @@ #include "llvm/Target/TargetFrameInfo.h" #include "IA64InstrInfo.h" #include "IA64ISelLowering.h" -#include "IA64TargetAsmInfo.h" namespace llvm { @@ -29,6 +28,10 @@ class IA64TargetMachine : public LLVMTargetMachine { TargetFrameInfo FrameInfo; //IA64JITInfo JITInfo; IA64TargetLowering TLInfo; + +protected: + virtual const TargetAsmInfo *createTargetAsmInfo() const; + public: IA64TargetMachine(const Module &M, const std::string &FS); @@ -42,10 +45,6 @@ public: } virtual const TargetData *getTargetData() const { return &DataLayout; } - virtual const TargetAsmInfo *createTargetAsmInfo() const { - return static_cast<const TargetAsmInfo *>(new IA64TargetAsmInfo(*this)); - } - static unsigned getModuleMatchQuality(const Module &M); // Pass Pipeline Configuration |