diff options
author | Chris Lattner <sabre@nondot.org> | 2003-06-04 21:01:12 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-06-04 21:01:12 +0000 |
commit | e5d4293cbaa8ad76c763e05ac84b4e589a45550b (patch) | |
tree | 274b871650e5bd00a3dc1fc4b355ea5a68b105dd /lib/Target/SparcV9/MappingInfo.cpp | |
parent | 758578e1582573954bf4545627ef849ebed3cdbe (diff) | |
download | external_llvm-e5d4293cbaa8ad76c763e05ac84b4e589a45550b.zip external_llvm-e5d4293cbaa8ad76c763e05ac84b4e589a45550b.tar.gz external_llvm-e5d4293cbaa8ad76c763e05ac84b4e589a45550b.tar.bz2 |
Revert brians patch to get mapping info working again
sorry dude
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6615 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/SparcV9/MappingInfo.cpp')
-rw-r--r-- | lib/Target/SparcV9/MappingInfo.cpp | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/lib/Target/SparcV9/MappingInfo.cpp b/lib/Target/SparcV9/MappingInfo.cpp index 6f808ab..9c51bcf 100644 --- a/lib/Target/SparcV9/MappingInfo.cpp +++ b/lib/Target/SparcV9/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: |