From 50e4e88d9797753390e86a513ece4e9ce7ab5d77 Mon Sep 17 00:00:00 2001 From: Bill Wendling Date: Thu, 8 Feb 2007 01:38:33 +0000 Subject: [PATCH] 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 --- lib/Target/Alpha/AlphaTargetMachine.cpp | 5 +++++ lib/Target/Alpha/AlphaTargetMachine.h | 2 ++ 2 files changed, 7 insertions(+) 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 -- 2.34.1