[cfe-commits] r38617 - in /cfe/cfe/trunk: Lex/Pragma.cpp Lex/Preprocessor.cpp include/clang/Lex/Pragma.h
sabre at cs.uiuc.edu
sabre at cs.uiuc.edu
Wed Jul 11 09:23:14 PDT 2007
Author: sabre
Date: Wed Jul 11 11:23:14 2007
New Revision: 38617
URL: http://llvm.org/viewvc/llvm-project?rev=38617&view=rev
Log:
Move a virtual method out-of-line
Modified:
cfe/cfe/trunk/Lex/Pragma.cpp
cfe/cfe/trunk/Lex/Preprocessor.cpp
cfe/cfe/trunk/include/clang/Lex/Pragma.h
Modified: cfe/cfe/trunk/Lex/Pragma.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/cfe/trunk/Lex/Pragma.cpp?rev=38617&r1=38616&r2=38617&view=diff
==============================================================================
--- cfe/cfe/trunk/Lex/Pragma.cpp (original)
+++ cfe/cfe/trunk/Lex/Pragma.cpp Wed Jul 11 11:23:14 2007
@@ -38,6 +38,11 @@
Handler->HandlePragma(PP, Tok);
}
+PragmaNamespace::~PragmaNamespace() {
+ for (unsigned i = 0, e = Handlers.size(); i != e; ++i)
+ delete Handlers[i];
+}
+
//===----------------------------------------------------------------------===//
// Preprocessor Pragma Directive Handling.
Modified: cfe/cfe/trunk/Lex/Preprocessor.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/cfe/trunk/Lex/Preprocessor.cpp?rev=38617&r1=38616&r2=38617&view=diff
==============================================================================
--- cfe/cfe/trunk/Lex/Preprocessor.cpp (original)
+++ cfe/cfe/trunk/Lex/Preprocessor.cpp Wed Jul 11 11:23:14 2007
@@ -18,7 +18,6 @@
// Options to support:
// -H - Print the name of each header file used.
// -C -CC - Do not discard comments for cpp.
-// -P - Do not emit #line directives.
// -d[MDNI] - Dump various things.
// -fworking-directory - #line's with preprocessor's working dir.
// -fpreprocessed
Modified: cfe/cfe/trunk/include/clang/Lex/Pragma.h
URL: http://llvm.org/viewvc/llvm-project/cfe/cfe/trunk/include/clang/Lex/Pragma.h?rev=38617&r1=38616&r2=38617&view=diff
==============================================================================
--- cfe/cfe/trunk/include/clang/Lex/Pragma.h (original)
+++ cfe/cfe/trunk/include/clang/Lex/Pragma.h Wed Jul 11 11:23:14 2007
@@ -54,11 +54,8 @@
std::vector<PragmaHandler*> Handlers;
public:
PragmaNamespace(const IdentifierTokenInfo *Name) : PragmaHandler(Name) {}
- ~PragmaNamespace() {
- for (unsigned i = 0, e = Handlers.size(); i != e; ++i)
- delete Handlers[i];
- }
-
+ virtual ~PragmaNamespace();
+
/// FindHandler - Check to see if there is already a handler for the
/// specified name. If not, return the handler for the null identifier if it
/// exists, otherwise return null. If IgnoreNull is true (the default) then
More information about the cfe-commits
mailing list