mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-11-01 00:17:01 +00:00
Debug Info Verifier: enable public functions of Finder to update the type map.
We used to depend on running processModule before the other public functions such as processDeclare, processValue and processLocation. We are now relaxing the constraint by adding a module argument to the three functions and letting the three functions to initialize the type map. This will be used in a follow-on patch that collects nodes reachable from a Function. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@194973 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -766,16 +766,19 @@ public:
|
||||
void processModule(const Module &M);
|
||||
|
||||
/// processDeclare - Process DbgDeclareInst.
|
||||
void processDeclare(const DbgDeclareInst *DDI);
|
||||
void processDeclare(const Module &M, const DbgDeclareInst *DDI);
|
||||
/// Process DbgValueInst.
|
||||
void processValue(const DbgValueInst *DVI);
|
||||
void processValue(const Module &M, const DbgValueInst *DVI);
|
||||
/// processLocation - Process DILocation.
|
||||
void processLocation(DILocation Loc);
|
||||
void processLocation(const Module &M, DILocation Loc);
|
||||
|
||||
/// Clear all lists.
|
||||
void reset();
|
||||
|
||||
private:
|
||||
/// Initialize TypeIdentifierMap.
|
||||
void IntializeTypeMap(const Module &M);
|
||||
|
||||
/// processType - Process DIType.
|
||||
void processType(DIType DT);
|
||||
|
||||
@@ -828,6 +831,8 @@ private:
|
||||
SmallVector<MDNode *, 8> Scopes; // Scopes
|
||||
SmallPtrSet<MDNode *, 64> NodesSeen;
|
||||
DITypeIdentifierMap TypeIdentifierMap;
|
||||
/// Specify if TypeIdentifierMap is initialized.
|
||||
bool TypeMapInitialized;
|
||||
};
|
||||
} // end namespace llvm
|
||||
|
||||
|
||||
Reference in New Issue
Block a user