diff options
author | Chris Lattner <sabre@nondot.org> | 2009-04-01 02:08:13 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-04-01 02:08:13 +0000 |
commit | 5ad0f6778556535dca448e9d82e674d2d255ad06 (patch) | |
tree | d41f0510364687e94201388adbcf2806f9bbc5c7 | |
parent | 09dc6660487fc2f4a4bb2032e30123d3e0da7230 (diff) |
move trivial forwarding function inline.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@68176 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/CodeGen/CodeGenModule.cpp | 6 | ||||
-rw-r--r-- | lib/CodeGen/CodeGenModule.h | 5 |
2 files changed, 4 insertions, 7 deletions
diff --git a/lib/CodeGen/CodeGenModule.cpp b/lib/CodeGen/CodeGenModule.cpp index 4cee5c8f37..59876516aa 100644 --- a/lib/CodeGen/CodeGenModule.cpp +++ b/lib/CodeGen/CodeGenModule.cpp @@ -923,12 +923,6 @@ void CodeGenModule::EmitAliasDefinition(const ValueDecl *D) { SetGlobalValueAttributes(D, false, false, GA, true); } -void CodeGenModule::UpdateCompletedType(const TagDecl *TD) { - // Make sure that this type is translated. - Types.UpdateCompletedType(TD); -} - - /// getBuiltinLibFunction - Given a builtin id for a function like /// "__builtin_fabsf", return a Function* for "fabsf". llvm::Value *CodeGenModule::getBuiltinLibFunction(unsigned BuiltinID) { diff --git a/lib/CodeGen/CodeGenModule.h b/lib/CodeGen/CodeGenModule.h index 4fbacdc25c..8c7571fd64 100644 --- a/lib/CodeGen/CodeGenModule.h +++ b/lib/CodeGen/CodeGenModule.h @@ -248,7 +248,10 @@ public: llvm::Constant *CreateRuntimeVariable(const llvm::Type *Ty, const char *Name); - void UpdateCompletedType(const TagDecl *D); + void UpdateCompletedType(const TagDecl *TD) { + // Make sure that this type is translated. + Types.UpdateCompletedType(TD); + } /// EmitConstantExpr - Try to emit the given expression as a /// constant; returns 0 if the expression cannot be emitted as a |