diff options
author | Daniel Dunbar <daniel@zuster.org> | 2010-03-11 05:53:33 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2010-03-11 05:53:33 +0000 |
commit | 18ff2cced7e08ac76d8d5bcff8160a5f9a109cbb (patch) | |
tree | 16c56ca447dbba5777596b2042d8424e5fbba5c1 /include/llvm/MC/MCAsmLayout.h | |
parent | 040056fd11693ffc41ce9b777281c71705d0dc1f (diff) | |
download | external_llvm-18ff2cced7e08ac76d8d5bcff8160a5f9a109cbb.zip external_llvm-18ff2cced7e08ac76d8d5bcff8160a5f9a109cbb.tar.gz external_llvm-18ff2cced7e08ac76d8d5bcff8160a5f9a109cbb.tar.bz2 |
MC/Mach-O: Start passing in the basic MCAsmLayout object.
- Also, drop the current location part of AsmLayout, I think I prefer to implement this via explicit symbols.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@98240 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/MC/MCAsmLayout.h')
-rw-r--r-- | include/llvm/MC/MCAsmLayout.h | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/include/llvm/MC/MCAsmLayout.h b/include/llvm/MC/MCAsmLayout.h index d2b5e4a..d448625 100644 --- a/include/llvm/MC/MCAsmLayout.h +++ b/include/llvm/MC/MCAsmLayout.h @@ -22,26 +22,13 @@ class MCAssembler; /// even during the relaxation process. class MCAsmLayout { private: - uint64_t CurrentLocation; - MCAssembler &Assembler; public: - MCAsmLayout(MCAssembler &_Assembler) - : CurrentLocation(0), Assembler(_Assember) {} + MCAsmLayout(MCAssembler &_Assembler) : Assembler(_Assembler) {} /// Get the assembler object this is a layout for. MCAssembler &getAssembler() { return Assembler; } - - /// Get the current location value, i.e. that value of the '.' expression. - uin64_t getCurrentLocation() { - return CurrentLocation; - } - - /// Set the current location. - void setCurrentLocation(uint64_t Value) { - CurrentLocation = Value; - } }; } // end namespace llvm |