diff options
author | Douglas Gregor <dgregor@apple.com> | 2008-11-03 15:57:00 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2008-11-03 15:57:00 +0000 |
commit | d934112e6170b0fd940d8e40db6936cea2cdcf62 (patch) | |
tree | 95aedcf94ce98ac4b8b6d09be21bd4a3881a9dcb /lib/AST/ASTContext.cpp | |
parent | f1f9b4e5c7fd087e78f2e387c01098d49d41e784 (diff) |
Eliminate header dependency ASTContext -> TargetInfo
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@58613 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AST/ASTContext.cpp')
-rw-r--r-- | lib/AST/ASTContext.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/AST/ASTContext.cpp b/lib/AST/ASTContext.cpp index 0e250281a0..1aea5b5c69 100644 --- a/lib/AST/ASTContext.cpp +++ b/lib/AST/ASTContext.cpp @@ -1793,8 +1793,9 @@ void ASTContext::setObjCConstantStringInterface(ObjCInterfaceDecl *Decl) { } /// getFromTargetType - Given one of the integer types provided by -/// TargetInfo, produce the corresponding type. -QualType ASTContext::getFromTargetType(TargetInfo::IntType Type) const { +/// TargetInfo, produce the corresponding type. The unsigned @p Type +/// is actually a value of type @c TargetInfo::IntType. +QualType ASTContext::getFromTargetType(unsigned Type) const { switch (Type) { case TargetInfo::NoInt: return QualType(); case TargetInfo::SignedShort: return ShortTy; |