diff options
author | Alexey Samsonov <samsonov@google.com> | 2012-10-25 10:18:50 +0000 |
---|---|---|
committer | Alexey Samsonov <samsonov@google.com> | 2012-10-25 10:18:50 +0000 |
commit | 9b502e512c44365c8df5dce1c032f00688ac2fd7 (patch) | |
tree | 4fe2cab22f98a8db265beff7cb99d476ff8dd4fb /clang/lib/CodeGen/CGVTables.cpp | |
parent | 95fd41aeacfee23503d2fcdea9d5a350ace813e4 (diff) | |
download | llvm-9b502e512c44365c8df5dce1c032f00688ac2fd7.zip llvm-9b502e512c44365c8df5dce1c032f00688ac2fd7.tar.gz llvm-9b502e512c44365c8df5dce1c032f00688ac2fd7.tar.bz2 |
Initialize debug info for special cases of functions that lack declarations and are generated by Clang (global initializers/destructors, thunks) . Fixes PR13942.
llvm-svn: 166676
Diffstat (limited to 'clang/lib/CodeGen/CGVTables.cpp')
-rw-r--r-- | clang/lib/CodeGen/CGVTables.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGVTables.cpp b/clang/lib/CodeGen/CGVTables.cpp index a1a661b..5b37fe4 100644 --- a/clang/lib/CodeGen/CGVTables.cpp +++ b/clang/lib/CodeGen/CGVTables.cpp @@ -333,7 +333,10 @@ void CodeGenFunction::GenerateThunk(llvm::Function *Fn, FunctionArgs.push_back(Param); } - + + // Initialize debug info if needed. + maybeInitializeDebugInfo(); + StartFunction(GlobalDecl(), ResultType, Fn, FnInfo, FunctionArgs, SourceLocation()); |