summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/Sparc/MappingInfo.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-06-04 21:01:12 +0000
committerChris Lattner <sabre@nondot.org>2003-06-04 21:01:12 +0000
commit365a47bdbb18c0baf50d42a69b32ca6db5d12ea0 (patch)
treee816d7619ab6d01611459cf92bd8b11467937b95 /llvm/lib/Target/Sparc/MappingInfo.cpp
parentcbf828dd0db06dc974938e3a112346615268e842 (diff)
downloadbcm5719-llvm-365a47bdbb18c0baf50d42a69b32ca6db5d12ea0.tar.gz
bcm5719-llvm-365a47bdbb18c0baf50d42a69b32ca6db5d12ea0.zip
Revert brians patch to get mapping info working again
sorry dude llvm-svn: 6615
Diffstat (limited to 'llvm/lib/Target/Sparc/MappingInfo.cpp')
-rw-r--r--llvm/lib/Target/Sparc/MappingInfo.cpp13
1 files changed, 4 insertions, 9 deletions
diff --git a/llvm/lib/Target/Sparc/MappingInfo.cpp b/llvm/lib/Target/Sparc/MappingInfo.cpp
index 6f808ab7780..9c51bcf9dba 100644
--- a/llvm/lib/Target/Sparc/MappingInfo.cpp
+++ b/llvm/lib/Target/Sparc/MappingInfo.cpp
@@ -43,7 +43,7 @@ namespace {
void create_MI_to_number_Key(Function &FI);
void writeBBToMImap(Function &FI, unsigned num);
void writeLLVMToMImap(Function &FI, unsigned num);
- void writeNumber(unsigned X);
+ unsigned writeNumber(unsigned X);
};
}
@@ -104,24 +104,19 @@ void getMappingInfoForFunction::writeEpilogue(const std::string &symbolPrefix,
<< num << "\n\n\n\n";
}
-/// outByte -- NOT DONE YET.
-void outByte (unsigned char b) {
- //Out << "\t.byte " << tmp << "\n";
-}
-
-
/// writeNumber -- Write out the number X as a sequence of .byte
/// directives to the current output stream Out. This method performs a
/// run-length encoding of the unsigned integers X that are output.
-void getMappingInfoForFunction::writeNumber(unsigned X) {
+unsigned getMappingInfoForFunction::writeNumber(unsigned X) {
unsigned i=0;
do {
unsigned tmp = X & 127;
X >>= 7;
if (X) tmp |= 128;
- outByte (tmp);
+ Out << "\t.byte " << tmp << "\n";
++i;
} while(X);
+ return i;
}
/// doInitialization -- Assign a number to each Function, as follows:
OpenPOWER on IntegriCloud