From: Bill Wendling Date: Thu, 8 Feb 2007 01:38:33 +0000 (+0000) Subject: Added new method to add a "simple" code emitter. That is, to only add X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=50e4e88d9797753390e86a513ece4e9ce7ab5d77;p=oota-llvm.git Added new method to add a "simple" code emitter. That is, to only add the code emitter and not set variables. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34033 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/Alpha/AlphaTargetMachine.cpp b/lib/Target/Alpha/AlphaTargetMachine.cpp index 569f2a0f13d..bf7f22145f5 100644 --- a/lib/Target/Alpha/AlphaTargetMachine.cpp +++ b/lib/Target/Alpha/AlphaTargetMachine.cpp @@ -88,3 +88,8 @@ bool AlphaTargetMachine::addCodeEmitter(FunctionPassManager &PM, bool Fast, PM.add(createAlphaCodeEmitterPass(*this, MCE)); return false; } +bool AlphaTargetMachine::addSimpleCodeEmitter(FunctionPassManager &PM, + bool Fast, + MachineCodeEmitter &MCE) { + return addCodeEmitter(PM, Fast, MCE); +} diff --git a/lib/Target/Alpha/AlphaTargetMachine.h b/lib/Target/Alpha/AlphaTargetMachine.h index 434a306c223..5a57f63a69f 100644 --- a/lib/Target/Alpha/AlphaTargetMachine.h +++ b/lib/Target/Alpha/AlphaTargetMachine.h @@ -64,6 +64,8 @@ public: std::ostream &Out); virtual bool addCodeEmitter(FunctionPassManager &PM, bool Fast, MachineCodeEmitter &MCE); + virtual bool addSimpleCodeEmitter(FunctionPassManager &PM, bool Fast, + MachineCodeEmitter &MCE); }; } // end namespace llvm