zahen created this revision. zahen added a reviewer: chandlerc. Herald added a project: clang. Herald added a subscriber: cfe-commits.
Allow the VarBypassDetector class to be consumed by external tools by exposing its header from a standard include path. If accepted, I will need a user with check-in permission to apply the patch. Repository: rC Clang https://reviews.llvm.org/D62752 Files: clang/include/clang/CodeGen/VarBypassDetector.h clang/lib/CodeGen/CodeGenFunction.h clang/lib/CodeGen/VarBypassDetector.cpp clang/lib/CodeGen/VarBypassDetector.h Index: clang/lib/CodeGen/VarBypassDetector.cpp =================================================================== --- clang/lib/CodeGen/VarBypassDetector.cpp +++ clang/lib/CodeGen/VarBypassDetector.cpp @@ -6,7 +6,7 @@ // //===----------------------------------------------------------------------===// -#include "VarBypassDetector.h" +#include "clang/CodeGen/VarBypassDetector.h" #include "clang/AST/Decl.h" #include "clang/AST/Expr.h" Index: clang/lib/CodeGen/CodeGenFunction.h =================================================================== --- clang/lib/CodeGen/CodeGenFunction.h +++ clang/lib/CodeGen/CodeGenFunction.h @@ -20,7 +20,6 @@ #include "CodeGenModule.h" #include "CodeGenPGO.h" #include "EHScopeStack.h" -#include "VarBypassDetector.h" #include "clang/AST/CharUnits.h" #include "clang/AST/CurrentSourceLocExprScope.h" #include "clang/AST/ExprCXX.h" @@ -32,6 +31,7 @@ #include "clang/Basic/CodeGenOptions.h" #include "clang/Basic/OpenMPKinds.h" #include "clang/Basic/TargetInfo.h" +#include "clang/CodeGen/VarBypassDetector.h" #include "llvm/ADT/ArrayRef.h" #include "llvm/ADT/DenseMap.h" #include "llvm/ADT/MapVector.h" Index: clang/include/clang/CodeGen/VarBypassDetector.h =================================================================== --- clang/include/clang/CodeGen/VarBypassDetector.h +++ clang/include/clang/CodeGen/VarBypassDetector.h @@ -11,8 +11,8 @@ // //===----------------------------------------------------------------------===// -#ifndef LLVM_CLANG_LIB_CODEGEN_VARBYPASSDETECTOR_H -#define LLVM_CLANG_LIB_CODEGEN_VARBYPASSDETECTOR_H +#ifndef LLVM_CLANG_CODEGEN_VARBYPASSDETECTOR_H +#define LLVM_CLANG_CODEGEN_VARBYPASSDETECTOR_H #include "clang/AST/Decl.h" #include "llvm/ADT/DenseMap.h"
Index: clang/lib/CodeGen/VarBypassDetector.cpp =================================================================== --- clang/lib/CodeGen/VarBypassDetector.cpp +++ clang/lib/CodeGen/VarBypassDetector.cpp @@ -6,7 +6,7 @@ // //===----------------------------------------------------------------------===// -#include "VarBypassDetector.h" +#include "clang/CodeGen/VarBypassDetector.h" #include "clang/AST/Decl.h" #include "clang/AST/Expr.h" Index: clang/lib/CodeGen/CodeGenFunction.h =================================================================== --- clang/lib/CodeGen/CodeGenFunction.h +++ clang/lib/CodeGen/CodeGenFunction.h @@ -20,7 +20,6 @@ #include "CodeGenModule.h" #include "CodeGenPGO.h" #include "EHScopeStack.h" -#include "VarBypassDetector.h" #include "clang/AST/CharUnits.h" #include "clang/AST/CurrentSourceLocExprScope.h" #include "clang/AST/ExprCXX.h" @@ -32,6 +31,7 @@ #include "clang/Basic/CodeGenOptions.h" #include "clang/Basic/OpenMPKinds.h" #include "clang/Basic/TargetInfo.h" +#include "clang/CodeGen/VarBypassDetector.h" #include "llvm/ADT/ArrayRef.h" #include "llvm/ADT/DenseMap.h" #include "llvm/ADT/MapVector.h" Index: clang/include/clang/CodeGen/VarBypassDetector.h =================================================================== --- clang/include/clang/CodeGen/VarBypassDetector.h +++ clang/include/clang/CodeGen/VarBypassDetector.h @@ -11,8 +11,8 @@ // //===----------------------------------------------------------------------===// -#ifndef LLVM_CLANG_LIB_CODEGEN_VARBYPASSDETECTOR_H -#define LLVM_CLANG_LIB_CODEGEN_VARBYPASSDETECTOR_H +#ifndef LLVM_CLANG_CODEGEN_VARBYPASSDETECTOR_H +#define LLVM_CLANG_CODEGEN_VARBYPASSDETECTOR_H #include "clang/AST/Decl.h" #include "llvm/ADT/DenseMap.h"
_______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits