summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/Alpha/AlphaCodeEmitter.cpp
diff options
context:
space:
mode:
authorJeffrey Yasskin <jyasskin@google.com>2009-07-17 18:49:39 +0000
committerJeffrey Yasskin <jyasskin@google.com>2009-07-17 18:49:39 +0000
commit15d54b950466eb2f8096e02c0ede2b1163f4454a (patch)
treee7f90cad647b0b22058908c9d85914aee8320c10 /llvm/lib/Target/Alpha/AlphaCodeEmitter.cpp
parente974dc3eb131ef2771bd4fee2114e414ad88a35a (diff)
downloadbcm5719-llvm-15d54b950466eb2f8096e02c0ede2b1163f4454a.tar.gz
bcm5719-llvm-15d54b950466eb2f8096e02c0ede2b1163f4454a.zip
r76102 added the MachineCodeEmitter::processDebugLoc call and called it from
the X86 Emitter. This patch extends that to the rest of the targets that can write to a MachineCodeEmitter: ARM, Alpha, and PPC. llvm-svn: 76211
Diffstat (limited to 'llvm/lib/Target/Alpha/AlphaCodeEmitter.cpp')
-rw-r--r--llvm/lib/Target/Alpha/AlphaCodeEmitter.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/llvm/lib/Target/Alpha/AlphaCodeEmitter.cpp b/llvm/lib/Target/Alpha/AlphaCodeEmitter.cpp
index 98eeb8983e6..aacacf70474 100644
--- a/llvm/lib/Target/Alpha/AlphaCodeEmitter.cpp
+++ b/llvm/lib/Target/Alpha/AlphaCodeEmitter.cpp
@@ -72,8 +72,6 @@ namespace {
return "Alpha Machine Code Emitter";
}
- void emitInstruction(const MachineInstr &MI);
-
private:
void emitBasicBlock(MachineBasicBlock &MBB);
};
@@ -118,6 +116,7 @@ void Emitter<CodeEmitter>::emitBasicBlock(MachineBasicBlock &MBB) {
for (MachineBasicBlock::iterator I = MBB.begin(), E = MBB.end();
I != E; ++I) {
const MachineInstr &MI = *I;
+ MCE.processDebugLoc(MI.getDebugLoc());
switch(MI.getOpcode()) {
default:
MCE.emitWordLE(getBinaryCodeForInstr(*I));
@@ -245,5 +244,3 @@ unsigned AlphaCodeEmitter::getMachineOpValue(const MachineInstr &MI,
}
#include "AlphaGenCodeEmitter.inc"
-
-
OpenPOWER on IntegriCloud