diff options
author | David Chisnall <csdavec@swan.ac.uk> | 2012-02-17 16:51:02 +0000 |
---|---|---|
committer | David Chisnall <csdavec@swan.ac.uk> | 2012-02-17 16:51:02 +0000 |
commit | 8bb51ef6d2a396715f1dbc6edc1599892779e4d6 (patch) | |
tree | b1e5be73e51fbe58f3a0430e0ec86be5656c1382 /include | |
parent | 0f7de3542f792da8abced2ad1809b2dfa8a4daff (diff) | |
download | external_llvm-8bb51ef6d2a396715f1dbc6edc1599892779e4d6.zip external_llvm-8bb51ef6d2a396715f1dbc6edc1599892779e4d6.tar.gz external_llvm-8bb51ef6d2a396715f1dbc6edc1599892779e4d6.tar.bz2 |
Revert r150814. It turns out that there is a good reason for this after all...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@150818 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/MC/MCObjectFileInfo.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/llvm/MC/MCObjectFileInfo.h b/include/llvm/MC/MCObjectFileInfo.h index 7525f00..e58e7d6 100644 --- a/include/llvm/MC/MCObjectFileInfo.h +++ b/include/llvm/MC/MCObjectFileInfo.h @@ -284,6 +284,8 @@ public: const MCSection *getXDataSection() const { return XDataSection; } const MCSection *getEHFrameSection() { + if (!EHFrameSection) + InitEHFrameSection(); return EHFrameSection; } @@ -298,6 +300,9 @@ private: void InitELFMCObjectFileInfo(Triple T); void InitCOFFMCObjectFileInfo(Triple T); + /// InitEHFrameSection - Initialize EHFrameSection on demand. + /// + void InitEHFrameSection(); }; } // end namespace llvm |