[llvm-commits] [llvm] r94162 - in /llvm/trunk: include/llvm/Support/PassNameParser.h lib/VMCore/Pass.cpp
Chris Lattner
sabre at nondot.org
Thu Jan 21 22:29:25 PST 2010
Author: lattner
Date: Fri Jan 22 00:29:25 2010
New Revision: 94162
URL: http://llvm.org/viewvc/llvm-project?rev=94162&view=rev
Log:
give PassNameParser a home.
Modified:
llvm/trunk/include/llvm/Support/PassNameParser.h
llvm/trunk/lib/VMCore/Pass.cpp
Modified: llvm/trunk/include/llvm/Support/PassNameParser.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Support/PassNameParser.h?rev=94162&r1=94161&r2=94162&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Support/PassNameParser.h (original)
+++ llvm/trunk/include/llvm/Support/PassNameParser.h Fri Jan 22 00:29:25 2010
@@ -41,7 +41,9 @@
cl::Option *Opt;
public:
PassNameParser() : Opt(0) {}
-
+ virtual ~PassNameParser();
+
+
void initialize(cl::Option &O) {
Opt = &O;
cl::parser<const PassInfo*>::initialize(O);
Modified: llvm/trunk/lib/VMCore/Pass.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/VMCore/Pass.cpp?rev=94162&r1=94161&r2=94162&view=diff
==============================================================================
--- llvm/trunk/lib/VMCore/Pass.cpp (original)
+++ llvm/trunk/lib/VMCore/Pass.cpp Fri Jan 22 00:29:25 2010
@@ -21,6 +21,7 @@
#include "llvm/ADT/StringMap.h"
#include "llvm/Support/Debug.h"
#include "llvm/Support/ManagedStatic.h"
+#include "llvm/Support/PassNameParser.h"
#include "llvm/Support/raw_ostream.h"
#include "llvm/System/Atomic.h"
#include "llvm/System/Mutex.h"
@@ -394,6 +395,8 @@
getPassRegistrar()->EnumerateWith(this);
}
+PassNameParser::~PassNameParser() {}
+
//===----------------------------------------------------------------------===//
// AnalysisUsage Class Implementation
//
More information about the llvm-commits
mailing list