diff options
author | Bruno Cardoso Lopes <bruno.cardoso@gmail.com> | 2009-08-05 06:57:03 +0000 |
---|---|---|
committer | Bruno Cardoso Lopes <bruno.cardoso@gmail.com> | 2009-08-05 06:57:03 +0000 |
commit | 2b1dc9a7835c07365641aca2ab7c086760b93edb (patch) | |
tree | 81e0190ce6e8c6aff79b36b4e0559b9d9f9abb49 /llvm/lib/CodeGen/ObjectCodeEmitter.cpp | |
parent | e219be7346f840759dbab83d4767a164f43fc45a (diff) | |
download | bcm5719-llvm-2b1dc9a7835c07365641aca2ab7c086760b93edb.tar.gz bcm5719-llvm-2b1dc9a7835c07365641aca2ab7c086760b93edb.zip |
- Remove custom handling of jumptables by the elf writter (this was
a dirty hack and isn't need anymore since the last x86 code emitter patch)
- Add a target-dependent modifier to addend calculation
- Use R_X86_64_32S relocation for X86::reloc_absolute_word_sext
- Use getELFSectionFlags whenever possible
- fix getTextSection to use TLOF and emit the right text section
- Handle global emission for static ctors, dtors and Type::PointerTyID
- Some minor fixes
llvm-svn: 78176
Diffstat (limited to 'llvm/lib/CodeGen/ObjectCodeEmitter.cpp')
-rw-r--r-- | llvm/lib/CodeGen/ObjectCodeEmitter.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/ObjectCodeEmitter.cpp b/llvm/lib/CodeGen/ObjectCodeEmitter.cpp index 10448566b58..6f763404f53 100644 --- a/llvm/lib/CodeGen/ObjectCodeEmitter.cpp +++ b/llvm/lib/CodeGen/ObjectCodeEmitter.cpp @@ -55,8 +55,7 @@ void ObjectCodeEmitter::emitDWordBE(uint64_t W) { BO->emitDWordBE(W); } -/// emitAlignment - Move the CurBufferPtr pointer up the the specified -/// alignment (saturated to BufferEnd of course). +/// emitAlignment - Align 'BO' to the necessary alignment boundary. void ObjectCodeEmitter::emitAlignment(unsigned Alignment /* 0 */, uint8_t fill /* 0 */) { BO->emitAlignment(Alignment, fill); @@ -138,5 +137,7 @@ uintptr_t ObjectCodeEmitter::getConstantPoolEntrySection(unsigned Index) const { return CPSections[Index]; } +/// getNoopSize - Returns the size of the no operation instruction + } // end namespace llvm |