summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-08-22 08:27:54 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-08-22 08:27:54 +0000
commita5441fea1f5d4f86d6211af16dbf7d190f2a3c83 (patch)
tree96947c5ab1c68c9e7d3020ba19875db180934293 /include
parent8906ff1b9dfde28f1ff00706643ca10843b26e01 (diff)
downloadllvm-a5441fea1f5d4f86d6211af16dbf7d190f2a3c83.tar.gz
llvm-a5441fea1f5d4f86d6211af16dbf7d190f2a3c83.tar.bz2
llvm-a5441fea1f5d4f86d6211af16dbf7d190f2a3c83.tar.xz
llvm-mc: Rename / redefine MCFragment::FileOffset to MCFragment::Offset (the
section offset). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79734 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/MC/MCAssembler.h17
1 files changed, 8 insertions, 9 deletions
diff --git a/include/llvm/MC/MCAssembler.h b/include/llvm/MC/MCAssembler.h
index 991283aeca..bb2cda9094 100644
--- a/include/llvm/MC/MCAssembler.h
+++ b/include/llvm/MC/MCAssembler.h
@@ -43,12 +43,11 @@ private:
//
// FIXME: This could all be kept private to the assembler implementation.
- /// FileOffset - The offset of this section in the object file. This is ~0
- /// until initialized.
- uint64_t FileOffset;
-
- /// FileSize - The size of this section in the object file. This is ~0 until
+ /// Offset - The offset of this fragment in its section. This is ~0 until
/// initialized.
+ uint64_t Offset;
+
+ /// FileSize - The file size of this section. This is ~0 until initialized.
uint64_t FileSize;
/// @}
@@ -83,11 +82,11 @@ public:
FileSize = Value;
}
- uint64_t getFileOffset() const {
- assert(FileOffset != ~UINT64_C(0) && "File offset not set!");
- return FileOffset;
+ uint64_t getOffset() const {
+ assert(Offset != ~UINT64_C(0) && "File offset not set!");
+ return Offset;
}
- void setFileOffset(uint64_t Value) { FileOffset = Value; }
+ void setOffset(uint64_t Value) { Offset = Value; }
/// @}