projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Cleanup formatting, comments and naming.
[oota-llvm.git]
/
include
/
llvm
/
MC
/
MCContext.h
diff --git
a/include/llvm/MC/MCContext.h
b/include/llvm/MC/MCContext.h
index 78870d9633e2660e2cff70beeb75105dfd6abe76..111ad484ffb5cfbf20320fa536a0c7427fc41c7c 100644
(file)
--- a/
include/llvm/MC/MCContext.h
+++ b/
include/llvm/MC/MCContext.h
@@
-137,11
+137,16
@@
namespace llvm {
void *MachOUniquingMap, *ELFUniquingMap, *COFFUniquingMap;
void *MachOUniquingMap, *ELFUniquingMap, *COFFUniquingMap;
+ /// Do automatic initialization in constructor and finalization in
+ /// destructor
+ bool AutoInitializationFinalization;
+
MCSymbol *CreateSymbol(StringRef Name);
public:
explicit MCContext(const MCAsmInfo &MAI, const MCRegisterInfo &MRI,
MCSymbol *CreateSymbol(StringRef Name);
public:
explicit MCContext(const MCAsmInfo &MAI, const MCRegisterInfo &MRI,
- const MCObjectFileInfo *MOFI, const SourceMgr *Mgr = 0);
+ const MCObjectFileInfo *MOFI, const SourceMgr *Mgr = 0,
+ bool AutoInitializationFinalization = true);
~MCContext();
const SourceMgr *getSourceManager() const { return SrcMgr; }
~MCContext();
const SourceMgr *getSourceManager() const { return SrcMgr; }
@@
-154,6
+159,17
@@
namespace llvm {
void setAllowTemporaryLabels(bool Value) { AllowTemporaryLabels = Value; }
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
/// @{
/// @name Symbol Management
/// @{