mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-20 12:31:40 +00:00
Make build work in release mode
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2113 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
2c024a78fc
commit
a364ad0f9d
@ -16,16 +16,10 @@
|
|||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
//===----------------------------------------------------------------------===//
|
//===----------------------------------------------------------------------===//
|
||||||
// PMDebug class - a set of debugging functions that are enabled when compiling
|
// PMDebug class - a set of debugging functions, that are not to be
|
||||||
// with -g on. If compiling at -O, all functions are inlined noops.
|
// instantiated by the template.
|
||||||
//
|
//
|
||||||
struct PMDebug {
|
struct PMDebug {
|
||||||
#ifdef NDEBUG
|
|
||||||
inline static void PrintPassStructure(Pass *) {}
|
|
||||||
inline static void PrintPassInformation(unsigned,const char*,Pass*,Value*) {}
|
|
||||||
inline static void PrintAnalysisSetInfo(unsigned,const char*,Pass *P,
|
|
||||||
const Pass::AnalysisSet &) {}
|
|
||||||
#else
|
|
||||||
// If compiled in debug mode, these functions can be enabled by setting
|
// If compiled in debug mode, these functions can be enabled by setting
|
||||||
// -debug-pass on the command line of the tool being used.
|
// -debug-pass on the command line of the tool being used.
|
||||||
//
|
//
|
||||||
@ -33,7 +27,6 @@ struct PMDebug {
|
|||||||
static void PrintPassInformation(unsigned,const char*,Pass *, Value *);
|
static void PrintPassInformation(unsigned,const char*,Pass *, Value *);
|
||||||
static void PrintAnalysisSetInfo(unsigned,const char*,Pass *P,
|
static void PrintAnalysisSetInfo(unsigned,const char*,Pass *P,
|
||||||
const Pass::AnalysisSet&);
|
const Pass::AnalysisSet&);
|
||||||
#endif
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
@ -159,7 +152,6 @@ public:
|
|||||||
return MadeChanges;
|
return MadeChanges;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifndef NDEBUG
|
|
||||||
// dumpPassStructure - Implement the -debug-passes=PassStructure option
|
// dumpPassStructure - Implement the -debug-passes=PassStructure option
|
||||||
virtual void dumpPassStructure(unsigned Offset = 0) {
|
virtual void dumpPassStructure(unsigned Offset = 0) {
|
||||||
std::cerr << std::string(Offset*2, ' ') << Traits::getPMName()
|
std::cerr << std::string(Offset*2, ' ') << Traits::getPMName()
|
||||||
@ -179,7 +171,6 @@ public:
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
Pass *getAnalysisOrNullDown(AnalysisID ID) const {
|
Pass *getAnalysisOrNullDown(AnalysisID ID) const {
|
||||||
std::map<AnalysisID, Pass*>::const_iterator I = CurrentAnalyses.find(ID);
|
std::map<AnalysisID, Pass*>::const_iterator I = CurrentAnalyses.find(ID);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user