diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-11-13 05:51:54 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-11-13 05:51:54 +0000 |
commit | 1b4441915ab4dde5625e08c3e41c9c4b5e0806e9 (patch) | |
tree | 7ddc18770cc84d6bd0581b15a08c855bc42a7bf0 /clang/lib/CodeGen | |
parent | 1721ef7a535a1e98bbcd1b72ea5b393e676def2c (diff) | |
download | bcm5719-llvm-1b4441915ab4dde5625e08c3e41c9c4b5e0806e9.tar.gz bcm5719-llvm-1b4441915ab4dde5625e08c3e41c9c4b5e0806e9.zip |
Wherein the TargetInfo argument to Preprocessor is made 'const' and propogated.
llvm-svn: 87087
Diffstat (limited to 'clang/lib/CodeGen')
-rw-r--r-- | clang/lib/CodeGen/CGStmt.cpp | 2 | ||||
-rw-r--r-- | clang/lib/CodeGen/CodeGenFunction.h | 2 | ||||
-rw-r--r-- | clang/lib/CodeGen/CodeGenTypes.h | 4 |
3 files changed, 4 insertions, 4 deletions
diff --git a/clang/lib/CodeGen/CGStmt.cpp b/clang/lib/CodeGen/CGStmt.cpp index b47930e3137..b6d7b399045 100644 --- a/clang/lib/CodeGen/CGStmt.cpp +++ b/clang/lib/CodeGen/CGStmt.cpp @@ -737,7 +737,7 @@ void CodeGenFunction::EmitSwitchStmt(const SwitchStmt &S) { } static std::string -SimplifyConstraint(const char *Constraint, TargetInfo &Target, +SimplifyConstraint(const char *Constraint, const TargetInfo &Target, llvm::SmallVectorImpl<TargetInfo::ConstraintInfo> *OutCons=0) { std::string Result; diff --git a/clang/lib/CodeGen/CodeGenFunction.h b/clang/lib/CodeGen/CodeGenFunction.h index 1b1f03424d8..c69dcb505ac 100644 --- a/clang/lib/CodeGen/CodeGenFunction.h +++ b/clang/lib/CodeGen/CodeGenFunction.h @@ -74,7 +74,7 @@ class CodeGenFunction : public BlockFunction { void operator=(const CodeGenFunction&); // DO NOT IMPLEMENT public: CodeGenModule &CGM; // Per-module state. - TargetInfo &Target; + const TargetInfo &Target; typedef std::pair<llvm::Value *, llvm::Value *> ComplexPairTy; CGBuilderTy Builder; diff --git a/clang/lib/CodeGen/CodeGenTypes.h b/clang/lib/CodeGen/CodeGenTypes.h index a92a019b988..f447549f669 100644 --- a/clang/lib/CodeGen/CodeGenTypes.h +++ b/clang/lib/CodeGen/CodeGenTypes.h @@ -91,7 +91,7 @@ namespace CodeGen { /// while lowering AST types to LLVM types. class CodeGenTypes { ASTContext &Context; - TargetInfo &Target; + const TargetInfo &Target; llvm::Module& TheModule; const llvm::TargetData& TheTargetData; mutable const ABIInfo* TheABIInfo; @@ -153,7 +153,7 @@ public: ~CodeGenTypes(); const llvm::TargetData &getTargetData() const { return TheTargetData; } - TargetInfo &getTarget() const { return Target; } + const TargetInfo &getTarget() const { return Target; } ASTContext &getContext() const { return Context; } const ABIInfo &getABIInfo() const; llvm::LLVMContext &getLLVMContext() { return TheModule.getContext(); } |