aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/MC/MCAsmLayout.h
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2010-03-24 03:43:40 +0000
committerDaniel Dunbar <daniel@zuster.org>2010-03-24 03:43:40 +0000
commit207e06ea0446c51cb1d89f6400ec7becc46487f8 (patch)
tree7cbe12687a4f117def1297781e615368454c7a9e /include/llvm/MC/MCAsmLayout.h
parent2250425d6e44558f9d333a5c7faef33744f561d6 (diff)
downloadexternal_llvm-207e06ea0446c51cb1d89f6400ec7becc46487f8.zip
external_llvm-207e06ea0446c51cb1d89f6400ec7becc46487f8.tar.gz
external_llvm-207e06ea0446c51cb1d89f6400ec7becc46487f8.tar.bz2
MC: Direct all {fragment,section,symbol} address access through the MCAsmLayout object.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@99380 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/MC/MCAsmLayout.h')
-rw-r--r--include/llvm/MC/MCAsmLayout.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/llvm/MC/MCAsmLayout.h b/include/llvm/MC/MCAsmLayout.h
index 27bdbe9..2c26ff0 100644
--- a/include/llvm/MC/MCAsmLayout.h
+++ b/include/llvm/MC/MCAsmLayout.h
@@ -12,6 +12,9 @@
namespace llvm {
class MCAssembler;
+class MCFragment;
+class MCSectionData;
+class MCSymbolData;
/// Encapsulates the layout of an assembly file at a particular point in time.
///
@@ -29,6 +32,14 @@ public:
/// Get the assembler object this is a layout for.
MCAssembler &getAssembler() const { return Assembler; }
+
+ uint64_t getFragmentAddress(const MCFragment *F) const;
+
+ uint64_t getSectionAddress(const MCSectionData *SD) const;
+
+ uint64_t getSymbolAddress(const MCSymbolData *SD) const;
+
+ void setSectionAddress(MCSectionData *SD, uint64_t Value);
};
} // end namespace llvm