diff options
author | Devang Patel <dpatel@apple.com> | 2010-10-06 20:51:45 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2010-10-06 20:51:45 +0000 |
commit | 284fa417ec544c3cdafe9b7a9453cf68aa88a56d (patch) | |
tree | 60367102c4defbb8cda318a6d3fbad99b16add2c | |
parent | 9a33ec24ebc1b5b7f1b781204a2a103e7c29fb55 (diff) | |
download | bcm5719-llvm-284fa417ec544c3cdafe9b7a9453cf68aa88a56d.tar.gz bcm5719-llvm-284fa417ec544c3cdafe9b7a9453cf68aa88a56d.zip |
Mark FunctionNoProtoType's argument as unspecified parameters.
llvm-svn: 115834
-rw-r--r-- | clang/lib/CodeGen/CGDebugInfo.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/lib/CodeGen/CGDebugInfo.cpp b/clang/lib/CodeGen/CGDebugInfo.cpp index 2c72996392f..ba5dc7c0671 100644 --- a/clang/lib/CodeGen/CGDebugInfo.cpp +++ b/clang/lib/CodeGen/CGDebugInfo.cpp @@ -570,11 +570,11 @@ llvm::DIType CGDebugInfo::CreateType(const FunctionType *Ty, // Set up remainder of arguments if there is a prototype. // FIXME: IF NOT, HOW IS THIS REPRESENTED? llvm-gcc doesn't represent '...'! - if (const FunctionProtoType *FTP = dyn_cast<FunctionProtoType>(Ty)) { + if (isa<FunctionNoProtoType>(Ty)) + EltTys.push_back(DebugFactory.CreateUnspecifiedParameter()); + else if (const FunctionProtoType *FTP = dyn_cast<FunctionProtoType>(Ty)) { for (unsigned i = 0, e = FTP->getNumArgs(); i != e; ++i) EltTys.push_back(getOrCreateType(FTP->getArgType(i), Unit)); - } else { - // FIXME: Handle () case in C. llvm-gcc doesn't do it either. } llvm::DIArray EltTypeArray = |