summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenModule.h
diff options
context:
space:
mode:
authorSaleem Abdulrasool <compnerd@compnerd.org>2016-09-14 15:17:46 +0000
committerSaleem Abdulrasool <compnerd@compnerd.org>2016-09-14 15:17:46 +0000
commit7246dcc880cb36e47daa120f63585d46f92e2649 (patch)
treeb9100d65df6bfd8e8e3bbe0632c139d85bc2c22d /clang/lib/CodeGen/CodeGenModule.h
parent6ba29e21307eb883a5f625d1ea5346e3c2ba1dd4 (diff)
downloadbcm5719-llvm-7246dcc880cb36e47daa120f63585d46f92e2649.tar.gz
bcm5719-llvm-7246dcc880cb36e47daa120f63585d46f92e2649.zip
CodeGen: simplify the logic a slight bit
Move the definition of `getTriple()` into the header. It would just call `getTarget().getTriple()`. Inline the definition to allow the compiler to see the same amount of the layout as previously. Remove the more verbose `getTarget().getTriple()` in favour of `getTriple()`. llvm-svn: 281487
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.h')
-rw-r--r--clang/lib/CodeGen/CodeGenModule.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.h b/clang/lib/CodeGen/CodeGenModule.h
index a069ce1436e..c19e5bcdc1b 100644
--- a/clang/lib/CodeGen/CodeGenModule.h
+++ b/clang/lib/CodeGen/CodeGenModule.h
@@ -614,7 +614,7 @@ public:
return TheModule.getDataLayout();
}
const TargetInfo &getTarget() const { return Target; }
- const llvm::Triple &getTriple() const;
+ const llvm::Triple &getTriple() const { return Target.getTriple(); }
bool supportsCOMDAT() const;
void maybeSetTrivialComdat(const Decl &D, llvm::GlobalObject &GO);
OpenPOWER on IntegriCloud