[llvm-commits] [llvm] r73847 - in /llvm/trunk/utils/TableGen: TGLexer.cpp TGLexer.h

Chris Lattner sabre at nondot.org
Sat Jun 20 22:33:06 PDT 2009


Author: lattner
Date: Sun Jun 21 00:33:06 2009
New Revision: 73847

URL: http://llvm.org/viewvc/llvm-project?rev=73847&view=rev
Log:
prune #include, fix warning.

Modified:
    llvm/trunk/utils/TableGen/TGLexer.cpp
    llvm/trunk/utils/TableGen/TGLexer.h

Modified: llvm/trunk/utils/TableGen/TGLexer.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/TableGen/TGLexer.cpp?rev=73847&r1=73846&r2=73847&view=diff

==============================================================================
--- llvm/trunk/utils/TableGen/TGLexer.cpp (original)
+++ llvm/trunk/utils/TableGen/TGLexer.cpp Sun Jun 21 00:33:06 2009
@@ -280,7 +280,7 @@
 
   
   CurBuffer = SrcMgr.AddIncludeFile(Filename, SMLoc::getFromPointer(CurPtr));
-  if (CurBuffer == ~0U) {
+  if (CurBuffer == -1) {
     PrintError(getLoc(), "Could not find include file '" + Filename + "'");
     return true;
   }

Modified: llvm/trunk/utils/TableGen/TGLexer.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/TableGen/TGLexer.h?rev=73847&r1=73846&r2=73847&view=diff

==============================================================================
--- llvm/trunk/utils/TableGen/TGLexer.h (original)
+++ llvm/trunk/utils/TableGen/TGLexer.h Sun Jun 21 00:33:06 2009
@@ -17,7 +17,6 @@
 #include "llvm/Support/DataTypes.h"
 #include <vector>
 #include <string>
-#include <iosfwd>
 #include <cassert>
 
 namespace llvm {





More information about the llvm-commits mailing list