diff options
author | Pedro Artigas <partigas@apple.com> | 2012-12-06 00:50:55 +0000 |
---|---|---|
committer | Pedro Artigas <partigas@apple.com> | 2012-12-06 00:50:55 +0000 |
commit | 486a7ad94fc948a0f52c32c860cdb2b166741249 (patch) | |
tree | a67949f2ad5c11cacbab005deaa1656f718c7f27 /include/llvm/MC/MCContext.h | |
parent | 1c211640e53226540cd403948f5dd89c36c4beb8 (diff) | |
download | external_llvm-486a7ad94fc948a0f52c32c860cdb2b166741249.zip external_llvm-486a7ad94fc948a0f52c32c860cdb2b166741249.tar.gz external_llvm-486a7ad94fc948a0f52c32c860cdb2b166741249.tar.bz2 |
change MCContext to work on the doInitialization/doFinalization model
reviewed by Evan Cheng <evan.cheng@apple.com>
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@169456 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/MC/MCContext.h')
-rw-r--r-- | include/llvm/MC/MCContext.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/llvm/MC/MCContext.h b/include/llvm/MC/MCContext.h index 78870d9..766b90a 100644 --- a/include/llvm/MC/MCContext.h +++ b/include/llvm/MC/MCContext.h @@ -154,6 +154,17 @@ namespace llvm { void setAllowTemporaryLabels(bool Value) { AllowTemporaryLabels = Value; } + /// @name Module Lifetime Management + /// @{ + + /// doInitialization - prepare to process a new module + void doInitialization(); + + /// doFinalization - clean up state from the current module + void doFinalization(); + + /// @} + /// @name Symbol Management /// @{ |