aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Target
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-08-13 23:48:47 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-08-13 23:48:47 +0000
commit9abdc6cc3ce57c7ff8d44453d1e413ab920ca823 (patch)
treee2fe8f4e5820a5aa6c0b9a07aa4bb364d471c8ce /llvm/lib/Target
parent148edca7b81ee72df9aec9eb687bceecfde1242a (diff)
downloadllvm-9abdc6cc3ce57c7ff8d44453d1e413ab920ca823.zip
llvm-9abdc6cc3ce57c7ff8d44453d1e413ab920ca823.tar.gz
llvm-9abdc6cc3ce57c7ff8d44453d1e413ab920ca823.tar.bz2
TargetRegistry: Change AsmPrinter constructor to be typed as returning an
AsmPrinter instance (instead of just a FunctionPass) llvm-svn: 78962
Diffstat (limited to 'llvm/lib/Target')
-rw-r--r--llvm/lib/Target/PowerPC/AsmPrinter/PPCAsmPrinter.cpp8
-rw-r--r--llvm/lib/Target/X86/AsmPrinter/X86AsmPrinter.cpp8
2 files changed, 8 insertions, 8 deletions
diff --git a/llvm/lib/Target/PowerPC/AsmPrinter/PPCAsmPrinter.cpp b/llvm/lib/Target/PowerPC/AsmPrinter/PPCAsmPrinter.cpp
index 4a44f4c..efbf749 100644
--- a/llvm/lib/Target/PowerPC/AsmPrinter/PPCAsmPrinter.cpp
+++ b/llvm/lib/Target/PowerPC/AsmPrinter/PPCAsmPrinter.cpp
@@ -1089,10 +1089,10 @@ bool PPCDarwinAsmPrinter::doFinalization(Module &M) {
/// for a MachineFunction to the given output stream, in a format that the
/// Darwin assembler can deal with.
///
-static FunctionPass *createPPCAsmPrinterPass(formatted_raw_ostream &o,
- TargetMachine &tm,
- const TargetAsmInfo *tai,
- bool verbose) {
+static AsmPrinter *createPPCAsmPrinterPass(formatted_raw_ostream &o,
+ TargetMachine &tm,
+ const TargetAsmInfo *tai,
+ bool verbose) {
const PPCSubtarget *Subtarget = &tm.getSubtarget<PPCSubtarget>();
if (Subtarget->isDarwin())
diff --git a/llvm/lib/Target/X86/AsmPrinter/X86AsmPrinter.cpp b/llvm/lib/Target/X86/AsmPrinter/X86AsmPrinter.cpp
index f232159..2e769a4 100644
--- a/llvm/lib/Target/X86/AsmPrinter/X86AsmPrinter.cpp
+++ b/llvm/lib/Target/X86/AsmPrinter/X86AsmPrinter.cpp
@@ -25,10 +25,10 @@ using namespace llvm;
/// for a MachineFunction to the given output stream, using the given target
/// machine description.
///
-static FunctionPass *createX86CodePrinterPass(formatted_raw_ostream &o,
- TargetMachine &tm,
- const TargetAsmInfo *tai,
- bool verbose) {
+static AsmPrinter *createX86CodePrinterPass(formatted_raw_ostream &o,
+ TargetMachine &tm,
+ const TargetAsmInfo *tai,
+ bool verbose) {
if (tm.getTargetAsmInfo()->getAssemblerDialect() == 1)
return new X86IntelAsmPrinter(o, tm, tai, verbose);
return new X86ATTAsmPrinter(o, tm, tai, verbose);