aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/CodeGenTypes.h
diff options
context:
space:
mode:
authorAnders Carlsson <andersca@mac.com>2011-04-17 21:36:59 +0000
committerAnders Carlsson <andersca@mac.com>2011-04-17 21:36:59 +0000
commite9742b0f7281d0a21b79e661ec8879e01c4a02e4 (patch)
tree857749ac957c7162799d17f484bbf1defcd9934b /lib/CodeGen/CodeGenTypes.h
parent2786a81415c43cf3110d197b20987c352edbd0fe (diff)
Move code to add a type name to a TagDecl type out into a helper function. No functionality change.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@129669 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenTypes.h')
-rw-r--r--lib/CodeGen/CodeGenTypes.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/CodeGen/CodeGenTypes.h b/lib/CodeGen/CodeGenTypes.h
index 23b47ca6ae..6dd4d7bada 100644
--- a/lib/CodeGen/CodeGenTypes.h
+++ b/lib/CodeGen/CodeGenTypes.h
@@ -101,6 +101,11 @@ private:
/// used to handle cyclic structures properly.
void HandleLateResolvedPointers();
+ /// addTagTypeName - Compute a name from the given tag decl with an optional
+ /// suffix and name the given LLVM type using it.
+ void addTagTypeName(const TagDecl *TD, const llvm::Type *Ty,
+ llvm::StringRef suffix);
+
public:
CodeGenTypes(ASTContext &Ctx, llvm::Module &M, const llvm::TargetData &TD,
const ABIInfo &Info, CGCXXABI &CXXABI);