aboutsummaryrefslogtreecommitdiffstats
path: root/lib/CodeGen/ObjectCodeEmitter.cpp
diff options
context:
space:
mode:
authorBruno Cardoso Lopes <bruno.cardoso@gmail.com>2009-08-05 06:57:03 +0000
committerBruno Cardoso Lopes <bruno.cardoso@gmail.com>2009-08-05 06:57:03 +0000
commit52d0851446afe2ae923fc7e7ee56aa4c9d61c1e1 (patch)
tree356c393902662d4ed1137c0bd285643b2694f222 /lib/CodeGen/ObjectCodeEmitter.cpp
parent61f4b721b2f268ffbd0be614a4f328d541fa1d81 (diff)
downloadexternal_llvm-52d0851446afe2ae923fc7e7ee56aa4c9d61c1e1.zip
external_llvm-52d0851446afe2ae923fc7e7ee56aa4c9d61c1e1.tar.gz
external_llvm-52d0851446afe2ae923fc7e7ee56aa4c9d61c1e1.tar.bz2
- 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 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78176 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/ObjectCodeEmitter.cpp')
-rw-r--r--lib/CodeGen/ObjectCodeEmitter.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/CodeGen/ObjectCodeEmitter.cpp b/lib/CodeGen/ObjectCodeEmitter.cpp
index 1044856..6f76340 100644
--- a/lib/CodeGen/ObjectCodeEmitter.cpp
+++ b/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