CodeGen: simplify the logic a slight bit
authorSaleem Abdulrasool <compnerd@compnerd.org>
Wed, 14 Sep 2016 15:17:46 +0000 (15:17 +0000)
committerSaleem Abdulrasool <compnerd@compnerd.org>
Wed, 14 Sep 2016 15:17:46 +0000 (15:17 +0000)
commit7246dcc880cb36e47daa120f63585d46f92e2649
treeb9100d65df6bfd8e8e3bbe0632c139d85bc2c22d
parent6ba29e21307eb883a5f625d1ea5346e3c2ba1dd4
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
clang/lib/CodeGen/CodeGenModule.cpp
clang/lib/CodeGen/CodeGenModule.h
clang/lib/CodeGen/TargetInfo.cpp