diff options
author | Chris Lattner <sabre@nondot.org> | 2007-08-10 06:17:04 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2007-08-10 06:17:04 +0000 |
commit | 417efc897b5cf984209aae66d5faa849fe2c5104 (patch) | |
tree | fe53dd712c5d7af689bb66b53dfc9a2d333b53b5 /lib/VMCore | |
parent | acb8c09e27af766688190bc3cef58bef8b7de493 (diff) | |
download | external_llvm-417efc897b5cf984209aae66d5faa849fe2c5104.zip external_llvm-417efc897b5cf984209aae66d5faa849fe2c5104.tar.gz external_llvm-417efc897b5cf984209aae66d5faa849fe2c5104.tar.bz2 |
avoid copying strings.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@40980 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore')
-rw-r--r-- | lib/VMCore/PassManager.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/VMCore/PassManager.cpp b/lib/VMCore/PassManager.cpp index 7bdeeac..16477d5 100644 --- a/lib/VMCore/PassManager.cpp +++ b/lib/VMCore/PassManager.cpp @@ -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, ' '); |