diff options
author | Chris Lattner <sabre@nondot.org> | 2009-07-01 04:13:31 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-07-01 04:13:31 +0000 |
commit | 96122debc194ee6a368512e1f8ca4e5c79628976 (patch) | |
tree | 084bfbf3573e973d6b7837a0b22203099a5cbe3e /llvm/lib/Debugger | |
parent | 2857ccbaa7b1c755af1b392b13f0636fb0326a24 (diff) | |
download | bcm5719-llvm-96122debc194ee6a368512e1f8ca4e5c79628976.tar.gz bcm5719-llvm-96122debc194ee6a368512e1f8ca4e5c79628976.zip |
improve the APIs for creating struct and function types with no arguments/elements
to not have to create a temporary vector (in the API at least). Patch by Jay Foad!
llvm-svn: 74584
Diffstat (limited to 'llvm/lib/Debugger')
-rw-r--r-- | llvm/lib/Debugger/ProgramInfo.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/llvm/lib/Debugger/ProgramInfo.cpp b/llvm/lib/Debugger/ProgramInfo.cpp index 125ff556dd5..e58b3d58e6d 100644 --- a/llvm/lib/Debugger/ProgramInfo.cpp +++ b/llvm/lib/Debugger/ProgramInfo.cpp @@ -271,8 +271,7 @@ ProgramInfo::getSourceFiles(bool RequiresCompleteMap) { // should be on the use list of the llvm.dbg.translation_units global. // GlobalVariable *Units = - M->getGlobalVariable("llvm.dbg.translation_units", - StructType::get(std::vector<const Type*>())); + M->getGlobalVariable("llvm.dbg.translation_units", StructType::get()); if (Units == 0) throw "Program contains no debugging information!"; @@ -354,8 +353,7 @@ ProgramInfo::getSourceFunctions(bool RequiresCompleteMap) { // should be on the use list of the llvm.dbg.translation_units global. // GlobalVariable *Units = - M->getGlobalVariable("llvm.dbg.globals", - StructType::get(std::vector<const Type*>())); + M->getGlobalVariable("llvm.dbg.globals", StructType::get()); if (Units == 0) throw "Program contains no debugging information!"; |