diff options
| author | Greg Clayton <gclayton@apple.com> | 2010-07-21 22:12:05 +0000 |
|---|---|---|
| committer | Greg Clayton <gclayton@apple.com> | 2010-07-21 22:12:05 +0000 |
| commit | e1a916a74de2d2d86835a99e1eb11a9538f07778 (patch) | |
| tree | c573d1a9e96c118e9060231603d250377644e7cd /lldb/source/Symbol/Function.cpp | |
| parent | a57b97e7e7d4bd44ebc90c743e6db318fa5348d6 (diff) | |
| download | bcm5719-llvm-e1a916a74de2d2d86835a99e1eb11a9538f07778.tar.gz bcm5719-llvm-e1a916a74de2d2d86835a99e1eb11a9538f07778.zip | |
Change over to using the definitions for mach-o types and defines to the
defines that are in "llvm/Support/MachO.h". This should allow ObjectFileMachO
and ObjectContainerUniversalMachO to be able to be cross compiled in Linux.
Also did some cleanup on the ASTType by renaming it to ClangASTType and
renaming the header file. Moved a lot of "AST * + opaque clang type *"
functionality from lldb_private::Type over into ClangASTType.
llvm-svn: 109046
Diffstat (limited to 'lldb/source/Symbol/Function.cpp')
| -rw-r--r-- | lldb/source/Symbol/Function.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lldb/source/Symbol/Function.cpp b/lldb/source/Symbol/Function.cpp index 57f6cb4cd55..94eec1e7478 100644 --- a/lldb/source/Symbol/Function.cpp +++ b/lldb/source/Symbol/Function.cpp @@ -10,10 +10,11 @@ #include "lldb/Symbol/Function.h" #include "lldb/Core/Module.h" #include "lldb/Core/Section.h" +#include "lldb/Symbol/ClangASTType.h" +#include "lldb/Symbol/ClangASTContext.h" #include "lldb/Symbol/CompileUnit.h" #include "lldb/Symbol/LineTable.h" #include "lldb/Symbol/SymbolVendor.h" -#include "lldb/Symbol/ClangASTContext.h" #include "clang/AST/Type.h" #include "clang/AST/CanonicalType.h" @@ -339,7 +340,7 @@ Function::GetReturnType () clang::FunctionType *function_type = dyn_cast<clang::FunctionType> (clang_type); clang::QualType fun_return_qualtype = function_type->getResultType(); - const ConstString fun_return_name(Type::GetClangTypeName(fun_return_qualtype.getAsOpaquePtr())); + const ConstString fun_return_name(ClangASTType::GetClangTypeName(fun_return_qualtype.getAsOpaquePtr())); SymbolContext sc; CalculateSymbolContext (&sc); @@ -381,7 +382,7 @@ Function::GetArgumentTypeAtIndex (size_t idx) return Type(); clang::QualType arg_qualtype = (function_proto_type->arg_type_begin())[idx]; - const ConstString arg_return_name(Type::GetClangTypeName(arg_qualtype.getAsOpaquePtr())); + const ConstString arg_return_name(ClangASTType::GetClangTypeName(arg_qualtype.getAsOpaquePtr())); SymbolContext sc; CalculateSymbolContext (&sc); // Null out everything below the CompUnit 'cause we don't actually know these. |

