Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Catch up with LLVM trunk #10

Closed
wants to merge 8 commits into from

2 participants

@jsonn

Various small commits to catch up with current LLVM, please review and pick those of interest,

@chenyang78
Collaborator
@chenyang78
Collaborator

I pulled all of these commits. Thanks!

@chenyang78 chenyang78 closed this
@chenyang78 chenyang78 was assigned
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Nov 26, 2012
  1. @jsonn

    Redundant ;

    jsonn authored
  2. @jsonn

    Redundant ;

    jsonn authored
  3. @jsonn

    Redundant ;

    jsonn authored
  4. @jsonn

    Handle NullPtr like Null.

    jsonn authored
  5. @jsonn

    Catch up with Rewrite API change

    jsonn authored
  6. @jsonn

    Catch up with Rewrite API change

    jsonn authored
  7. @jsonn

    -lclangRewrite -> -lclangRewriteCore

    jsonn authored
    Disable exceptions and RTTI like LLVM now does.
  8. @jsonn
This page is out of date. Refresh to see the latest.
View
1  clang_delta/CommonRenameClassRewriteVisitor.h
@@ -353,6 +353,7 @@ bool CommonRenameClassRewriteVisitor<T>::TraverseTemplateArgumentLoc(
const TemplateArgument &Arg = ArgLoc.getArgument();
switch (Arg.getKind()) {
+ case TemplateArgument::NullPtr:
case TemplateArgument::Null:
case TemplateArgument::Declaration:
case TemplateArgument::Integral:
View
2  clang_delta/EmptyStructToInt.h
@@ -18,7 +18,7 @@ namespace clang {
class DeclGroupRef;
class ASTContext;
class RecordDecl;
-};
+}
class EmptyStructToIntASTVisitor;
class EmptyStructToIntRewriteVisitor;
View
4 clang_delta/Makefile.am
@@ -19,7 +19,7 @@ GIT_FLAG = -DGIT_VERSION=\"$(GIT_HASH)\"
# Avoid the warning by making `--ldflags' and `--libs' not look like
# linker options.
#
-LLVMCXXFLAGS := $(shell "$(LLVM_CONFIG)" --cxxflags)
+LLVMCXXFLAGS := $(shell "$(LLVM_CONFIG)" --cxxflags) -fno-rtti -fno-exceptions
LLVMLDFLAGS := $(shell "$(LLVM_CONFIG)" \--ldflags)
LLVMINCLUDEDIR := $(shell "$(LLVM_CONFIG)" --includedir)
LLVMLIBS := $(shell "$(LLVM_CONFIG)" \--libs)
@@ -48,7 +48,7 @@ clang_delta_CXXFLAGS = \
clang_delta_LDADD = \
-lclangFrontendTool -lclangFrontend -lclangDriver -lclangSerialization \
-lclangCodeGen -lclangParse -lclangSema -lclangAnalysis \
- -lclangRewrite -lclangAST -lclangLex -lclangBasic -lclangEdit \
+ -lclangRewriteCore -lclangAST -lclangLex -lclangBasic -lclangEdit \
$(LLVMLIBS) \
$(LLVMLDFLAGS)
View
4 clang_delta/Makefile.in
@@ -305,7 +305,7 @@ GIT_FLAG = -DGIT_VERSION=\"$(GIT_HASH)\"
# Avoid the warning by making `--ldflags' and `--libs' not look like
# linker options.
#
-LLVMCXXFLAGS := $(shell "$(LLVM_CONFIG)" --cxxflags)
+LLVMCXXFLAGS := $(shell "$(LLVM_CONFIG)" --cxxflags) -fno-rtti -fno-exceptions
LLVMLDFLAGS := $(shell "$(LLVM_CONFIG)" \--ldflags)
LLVMINCLUDEDIR := $(shell "$(LLVM_CONFIG)" --includedir)
LLVMLIBS := $(shell "$(LLVM_CONFIG)" \--libs)
@@ -334,7 +334,7 @@ clang_delta_CXXFLAGS = \
clang_delta_LDADD = \
-lclangFrontendTool -lclangFrontend -lclangDriver -lclangSerialization \
-lclangCodeGen -lclangParse -lclangSema -lclangAnalysis \
- -lclangRewrite -lclangAST -lclangLex -lclangBasic -lclangEdit \
+ -lclangRewriteCore -lclangAST -lclangLex -lclangBasic -lclangEdit \
$(LLVMLIBS) \
$(LLVMLDFLAGS)
View
2  clang_delta/ReplaceDerivedClass.h
@@ -18,7 +18,7 @@ namespace clang {
class DeclGroupRef;
class ASTContext;
class CXXRecordDecl;
-};
+}
class ReplaceDerivedClassASTVisitor;
class ReplaceDerivedClassRewriteVisitor;
View
2  clang_delta/ReplaceSimpleTypedef.h
@@ -18,7 +18,7 @@ namespace clang {
class DeclGroupRef;
class ASTContext;
class TypedefDecl;
-};
+}
class ReplaceSimpleTypedefCollectionVisitor;
class ReplaceSimpleTypedefRewriteVisitor;
View
2  clang_delta/RewriteUtils.cpp
@@ -17,7 +17,7 @@
#include <cctype>
#include <sstream>
#include "clang/Basic/SourceManager.h"
-#include "clang/Rewrite/Rewriter.h"
+#include "clang/Rewrite/Core/Rewriter.h"
#include "clang/AST/Decl.h"
#include "clang/AST/DeclCXX.h"
#include "clang/AST/DeclTemplate.h"
View
2  clang_delta/Transformation.h
@@ -15,7 +15,7 @@
#include <cstdlib>
#include <cassert>
#include "clang/AST/ASTConsumer.h"
-#include "clang/Rewrite/Rewriter.h"
+#include "clang/Rewrite/Core/Rewriter.h"
#include "RewriteUtils.h"
namespace clang {
View
2  clang_delta/TransformationManager.cpp
@@ -127,7 +127,7 @@ bool TransformationManager::initializeCompilerInstance(std::string &ErrorMsg)
PP.getBuiltinInfo().InitializeBuiltins(PP.getIdentifierTable(),
PP.getLangOpts());
- if (!ClangInstance->InitializeSourceManager(SrcFileName)) {
+ if (!ClangInstance->InitializeSourceManager(FrontendInputFile(SrcFileName, IK_CXX))) {
ErrorMsg = "Cannot open source file!";
return false;
}
Something went wrong with that request. Please try again.