mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
avoid copying strings.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@40980 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
acb8c09e27
commit
417efc897b
@ -218,7 +218,8 @@ public:
|
||||
void removeNotPreservedAnalysis(Pass *P);
|
||||
|
||||
/// Remove dead passes
|
||||
void removeDeadPasses(Pass *P, std::string Msg, enum PassDebuggingString);
|
||||
void removeDeadPasses(Pass *P, const std::string &Msg,
|
||||
enum PassDebuggingString);
|
||||
|
||||
/// Add pass P into the PassVector. Update
|
||||
/// AvailableAnalysis appropriately if ProcessAnalysis is true.
|
||||
@ -273,7 +274,7 @@ public:
|
||||
void dumpLastUses(Pass *P, unsigned Offset) const;
|
||||
void dumpPassArguments() const;
|
||||
void dumpPassInfo(Pass *P, enum PassDebuggingString S1,
|
||||
enum PassDebuggingString S2, std::string Msg);
|
||||
enum PassDebuggingString S2, const std::string &Msg);
|
||||
void dumpAnalysisSetInfo(const char *Msg, Pass *P,
|
||||
const std::vector<AnalysisID> &Set) const;
|
||||
|
||||
|
@ -650,7 +650,7 @@ void PMDataManager::removeNotPreservedAnalysis(Pass *P) {
|
||||
}
|
||||
|
||||
/// Remove analysis passes that are not used any longer
|
||||
void PMDataManager::removeDeadPasses(Pass *P, std::string Msg,
|
||||
void PMDataManager::removeDeadPasses(Pass *P, const std::string &Msg,
|
||||
enum PassDebuggingString DBG_STR) {
|
||||
|
||||
SmallVector<Pass *, 12> DeadPasses;
|
||||
@ -854,9 +854,9 @@ void PMDataManager::dumpPassArguments() const {
|
||||
}
|
||||
}
|
||||
|
||||
void PMDataManager:: dumpPassInfo(Pass *P, enum PassDebuggingString S1,
|
||||
enum PassDebuggingString S2,
|
||||
std::string Msg) {
|
||||
void PMDataManager::dumpPassInfo(Pass *P, enum PassDebuggingString S1,
|
||||
enum PassDebuggingString S2,
|
||||
const std::string &Msg) {
|
||||
if (PassDebugging < Executions)
|
||||
return;
|
||||
cerr << (void*)this << std::string(getDepth()*2+1, ' ');
|
||||
|
Loading…
Reference in New Issue
Block a user