From 9630ec5b6785e5b6e1c71aeddcad05005beb7483 Mon Sep 17 00:00:00 2001 From: Steve Naroff Date: Thu, 27 Mar 2008 22:59:54 +0000 Subject: [PATCH] Add some of Ted's recent work to the VC++ project file. Fix a couple bozo bugs in the rewriter. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@48903 91177308-0d34-0410-b5e6-96231b3b80d8 --- Driver/RewriteTest.cpp | 3 ++- win32/clangAnalysis/clangAnalysis.vcproj | 8 ++++++++ win32/clangDriver/clangDriver.vcproj | 4 ++++ 3 files changed, 14 insertions(+), 1 deletion(-) diff --git a/Driver/RewriteTest.cpp b/Driver/RewriteTest.cpp index d80b924ef0..afd34b968e 100644 --- a/Driver/RewriteTest.cpp +++ b/Driver/RewriteTest.cpp @@ -281,6 +281,7 @@ void RewriteTest::Initialize(ASTContext &context) { NSStringRecord = 0; CurMethodDecl = 0; SuperStructDecl = 0; + ConstantStringDecl = 0; BcLabelCount = 0; SuperContructorFunctionDecl = 0; NumObjCStringLiterals = 0; @@ -1844,7 +1845,7 @@ QualType RewriteTest::getConstantStringStructType() { // long length; FieldTypes[3] = Context->LongTy; // Create fields - FieldDecl *FieldDecls[2]; + FieldDecl *FieldDecls[4]; for (unsigned i = 0; i < 4; ++i) FieldDecls[i] = FieldDecl::Create(*Context, SourceLocation(), 0, diff --git a/win32/clangAnalysis/clangAnalysis.vcproj b/win32/clangAnalysis/clangAnalysis.vcproj index 6be0799e4b..ac1b810726 100644 --- a/win32/clangAnalysis/clangAnalysis.vcproj +++ b/win32/clangAnalysis/clangAnalysis.vcproj @@ -152,6 +152,10 @@ Filter="cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx" UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}" > + + @@ -188,6 +192,10 @@ RelativePath="..\..\lib\Analysis\LiveVariables.cpp" > + + diff --git a/win32/clangDriver/clangDriver.vcproj b/win32/clangDriver/clangDriver.vcproj index 63bb67730c..7ae983292f 100644 --- a/win32/clangDriver/clangDriver.vcproj +++ b/win32/clangDriver/clangDriver.vcproj @@ -197,6 +197,10 @@ RelativePath="..\..\Driver\DiagChecker.cpp" > + + -- 2.40.0