projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove Streams.h from the targets.
[oota-llvm.git]
/
lib
/
Target
/
CppBackend
/
CPPTargetMachine.h
diff --git
a/lib/Target/CppBackend/CPPTargetMachine.h
b/lib/Target/CppBackend/CPPTargetMachine.h
index 558a9a1aeefe4f1dd723a208671e1f65e931bec3..1f74f76b5ac14b66937c82a97350bb0b84a1efd8 100644
(file)
--- a/
lib/Target/CppBackend/CPPTargetMachine.h
+++ b/
lib/Target/CppBackend/CPPTargetMachine.h
@@
-22,10
+22,9
@@
namespace llvm {
class formatted_raw_ostream;
struct CPPTargetMachine : public TargetMachine {
class formatted_raw_ostream;
struct CPPTargetMachine : public TargetMachine {
- const TargetData DataLayout; // Calculates type size & alignment
-
- CPPTargetMachine(const Target &T, const Module &M, const std::string &FS)
- : TargetMachine(T), DataLayout(&M) {}
+ CPPTargetMachine(const Target &T, const std::string &TT,
+ const std::string &FS)
+ : TargetMachine(T) {}
virtual bool WantsWholeFile() const { return true; }
virtual bool addPassesToEmitWholeFile(PassManager &PM,
virtual bool WantsWholeFile() const { return true; }
virtual bool addPassesToEmitWholeFile(PassManager &PM,
@@
-33,12
+32,11
@@
struct CPPTargetMachine : public TargetMachine {
CodeGenFileType FileType,
CodeGenOpt::Level OptLevel);
CodeGenFileType FileType,
CodeGenOpt::Level OptLevel);
- // This class always works, but shouldn't be the default in most cases.
- static unsigned getModuleMatchQuality(const Module &M) { return 1; }
-
- virtual const TargetData *getTargetData() const { return &DataLayout; }
+ virtual const TargetData *getTargetData() const { return 0; }
};
};
+extern Target TheCppBackendTarget;
+
} // End llvm namespace
} // End llvm namespace