mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 20:51:52 +01:00
Keep "has debug info" big in MachineModuleInfo to avoid circular dependency between AsmPrinter and CodeGen.
llvm-svn: 62191
This commit is contained in:
parent
7a618394f6
commit
ba388f3905
@ -1041,6 +1041,10 @@ private:
|
||||
|
||||
bool CallsEHReturn;
|
||||
bool CallsUnwindInit;
|
||||
|
||||
/// DbgInfoAvailable - True if debugging information is available
|
||||
/// in this module.
|
||||
bool DbgInfoAvailable;
|
||||
public:
|
||||
static char ID; // Pass identification, replacement for typeid
|
||||
|
||||
@ -1082,8 +1086,9 @@ public:
|
||||
|
||||
/// hasDebugInfo - Returns true if valid debug info is present.
|
||||
///
|
||||
bool hasDebugInfo() const { return !CompileUnits.empty(); }
|
||||
|
||||
bool hasDebugInfo() const { return DbgInfoAvailable; }
|
||||
void setDebugInfoAvailability(bool avail) { DbgInfoAvailable = true; }
|
||||
|
||||
bool callsEHReturn() const { return CallsEHReturn; }
|
||||
void setCallsEHReturn(bool b) { CallsEHReturn = b; }
|
||||
|
||||
|
@ -3604,6 +3604,7 @@ public:
|
||||
|
||||
MMI = mmi;
|
||||
shouldEmit = true;
|
||||
MMI->setDebugInfoAvailability(true);
|
||||
|
||||
// Create DIEs for each of the externally visible global variables.
|
||||
ConstructGlobalVariableDIEs();
|
||||
|
@ -1630,6 +1630,7 @@ MachineModuleInfo::MachineModuleInfo()
|
||||
, Personalities()
|
||||
, CallsEHReturn(0)
|
||||
, CallsUnwindInit(0)
|
||||
, DbgInfoAvailable(false)
|
||||
{
|
||||
// Always emit "no personality" info
|
||||
Personalities.push_back(NULL);
|
||||
|
Loading…
x
Reference in New Issue
Block a user