[llvm-commits] CVS: llvm/lib/Target/X86/X86TargetMachine.cpp X86TargetMachine.h
Bill Wendling
isanbard at gmail.com
Tue Jan 16 19:51:56 PST 2007
Changes in directory llvm/lib/Target/X86:
X86TargetMachine.cpp updated: 1.135 -> 1.136
X86TargetMachine.h updated: 1.41 -> 1.42
---
Log message:
Create the specified TargetObjInfo and use it.
---
Diffs of the changes: (+6 -0)
X86TargetMachine.cpp | 5 +++++
X86TargetMachine.h | 1 +
2 files changed, 6 insertions(+)
Index: llvm/lib/Target/X86/X86TargetMachine.cpp
diff -u llvm/lib/Target/X86/X86TargetMachine.cpp:1.135 llvm/lib/Target/X86/X86TargetMachine.cpp:1.136
--- llvm/lib/Target/X86/X86TargetMachine.cpp:1.135 Fri Jan 12 13:20:47 2007
+++ llvm/lib/Target/X86/X86TargetMachine.cpp Tue Jan 16 21:51:37 2007
@@ -12,6 +12,7 @@
//===----------------------------------------------------------------------===//
#include "X86TargetAsmInfo.h"
+#include "X86TargetObjInfo.h"
#include "X86TargetMachine.h"
#include "X86.h"
#include "llvm/Module.h"
@@ -42,6 +43,10 @@
return new X86TargetAsmInfo(*this);
}
+const TargetObjInfo *X86TargetMachine::createTargetObjInfo() const {
+ return new ELFTargetObjInfo(*this);
+}
+
unsigned X86_32TargetMachine::getJITMatchQuality() {
#if defined(i386) || defined(__i386__) || defined(__x86__) || defined(_M_IX86)
return 10;
Index: llvm/lib/Target/X86/X86TargetMachine.h
diff -u llvm/lib/Target/X86/X86TargetMachine.h:1.41 llvm/lib/Target/X86/X86TargetMachine.h:1.42
--- llvm/lib/Target/X86/X86TargetMachine.h:1.41 Fri Sep 8 01:48:29 2006
+++ llvm/lib/Target/X86/X86TargetMachine.h Tue Jan 16 21:51:37 2007
@@ -35,6 +35,7 @@
protected:
virtual const TargetAsmInfo *createTargetAsmInfo() const;
+ virtual const TargetObjInfo *createTargetObjInfo() const;
public:
X86TargetMachine(const Module &M, const std::string &FS, bool is64Bit);
More information about the llvm-commits
mailing list