aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-08-26 13:57:54 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-08-26 13:57:54 +0000
commitbe9635569401b9a40984c02c6e171aa9da9ad0a2 (patch)
treed7c8944a1bf493767703235182109e364388c6cc /include
parent6c2e2d1c6b29534e99630fedbaa5e39652258449 (diff)
downloadexternal_llvm-be9635569401b9a40984c02c6e171aa9da9ad0a2.zip
external_llvm-be9635569401b9a40984c02c6e171aa9da9ad0a2.tar.gz
external_llvm-be9635569401b9a40984c02c6e171aa9da9ad0a2.tar.bz2
llvm-mc/Mach-O: Move symbol indices into the MCSymbolData structure.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@80088 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/MC/MCAssembler.h13
1 files changed, 11 insertions, 2 deletions
diff --git a/include/llvm/MC/MCAssembler.h b/include/llvm/MC/MCAssembler.h
index 0da729b..74a4748 100644
--- a/include/llvm/MC/MCAssembler.h
+++ b/include/llvm/MC/MCAssembler.h
@@ -286,7 +286,7 @@ public:
unsigned getAlignment() const { return Alignment; }
void setAlignment(unsigned Value) { Alignment = Value; }
- /// @name Section List Access
+ /// @name Fragment Access
/// @{
const FragmentListType &getFragmentList() const { return Fragments; }
@@ -324,7 +324,7 @@ public:
assert(FileSize != ~UINT64_C(0) && "File size not set!");
return FileSize;
}
- void setFileSize(uint64_t Value) { FileSize = Value; }
+ void setFileSize(uint64_t Value) { FileSize = Value; }
/// @}
};
@@ -352,6 +352,9 @@ public:
/// additional per symbol information which is not easily classified.
uint32_t Flags;
+ /// Index - Index field, for use by the object file implementation.
+ uint64_t Index;
+
public:
// Only for use as sentinel.
MCSymbolData();
@@ -385,6 +388,12 @@ public:
/// setFlags - Set the (implementation defined) symbol flags.
void setFlags(uint32_t Value) { Flags = Value; }
+ /// getIndex - Get the (implementation defined) index.
+ uint64_t getIndex() const { return Index; }
+
+ /// setIndex - Set the (implementation defined) index.
+ void setIndex(uint64_t Value) { Index = Value; }
+
/// @}
};