mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 20:32:21 +00:00
llvm-symbolizer: flush internal caches functionality
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@177390 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
974cdfb17a
commit
e9e10d18df
@ -186,6 +186,10 @@ std::string LLVMSymbolizer::symbolizeData(const std::string &ModuleName,
|
|||||||
return ss.str();
|
return ss.str();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void LLVMSymbolizer::flush() {
|
||||||
|
Modules.clear();
|
||||||
|
}
|
||||||
|
|
||||||
// Returns true if the object endianness is known.
|
// Returns true if the object endianness is known.
|
||||||
static bool getObjectEndianness(const ObjectFile *Obj, bool &IsLittleEndian) {
|
static bool getObjectEndianness(const ObjectFile *Obj, bool &IsLittleEndian) {
|
||||||
// FIXME: Implement this when libLLVMObject allows to do it easily.
|
// FIXME: Implement this when libLLVMObject allows to do it easily.
|
||||||
|
@ -50,6 +50,7 @@ public:
|
|||||||
symbolizeCode(const std::string &ModuleName, uint64_t ModuleOffset);
|
symbolizeCode(const std::string &ModuleName, uint64_t ModuleOffset);
|
||||||
std::string
|
std::string
|
||||||
symbolizeData(const std::string &ModuleName, uint64_t ModuleOffset);
|
symbolizeData(const std::string &ModuleName, uint64_t ModuleOffset);
|
||||||
|
void flush();
|
||||||
private:
|
private:
|
||||||
ModuleInfo *getOrCreateModuleInfo(const std::string &ModuleName);
|
ModuleInfo *getOrCreateModuleInfo(const std::string &ModuleName);
|
||||||
std::string printDILineInfo(DILineInfo LineInfo) const;
|
std::string printDILineInfo(DILineInfo LineInfo) const;
|
||||||
|
Loading…
Reference in New Issue
Block a user