[llvm-commits] CVS: llvm/include/llvm/Target/TargetMachine.h
Chris Lattner
lattner at cs.uiuc.edu
Tue Oct 29 15:13:00 PST 2002
Changes in directory llvm/include/llvm/Target:
TargetMachine.h updated: 1.15 -> 1.16
---
Log message:
Allow TargetMachine to refuse static code gen
---
Diffs of the changes:
Index: llvm/include/llvm/Target/TargetMachine.h
diff -u llvm/include/llvm/Target/TargetMachine.h:1.15 llvm/include/llvm/Target/TargetMachine.h:1.16
--- llvm/include/llvm/Target/TargetMachine.h:1.15 Tue Oct 29 14:51:10 2002
+++ llvm/include/llvm/Target/TargetMachine.h Tue Oct 29 15:12:43 2002
@@ -51,7 +51,7 @@
ShortAl, ByteAl) { }
public:
virtual ~TargetMachine() {}
-
+
//
// Interfaces to the major aspects of target machine information:
// -- Instruction opcode and operand information
@@ -74,9 +74,12 @@
/// addPassesToEmitAssembly - Add passes to the specified pass manager to get
/// assembly langage code emited. Typically this will involve several steps
- /// of code generation.
+ /// of code generation. This method should return true if code generation is
+ /// not supported.
///
- virtual void addPassesToEmitAssembly(PassManager &PM, std::ostream &Out) = 0;
+ virtual bool addPassesToEmitAssembly(PassManager &PM, std::ostream &Out) {
+ return true;
+ }
/// addPassesToJITCompile - Add passes to the specified pass manager to
/// implement a fast dynamic compiler for this target. Return true if this is
More information about the llvm-commits
mailing list