aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm
diff options
context:
space:
mode:
authorManman Ren <mren@apple.com>2013-03-12 20:17:00 +0000
committerManman Ren <mren@apple.com>2013-03-12 20:17:00 +0000
commit9e999adb48beb61663f6abca667b8c85068ee585 (patch)
treeb453bb8ab13d18a3cced6c03f2ce90d24ff873a6 /include/llvm
parentcc189bfb08864ef615e5dc48476b992b81f29167 (diff)
downloadexternal_llvm-9e999adb48beb61663f6abca667b8c85068ee585.zip
external_llvm-9e999adb48beb61663f6abca667b8c85068ee585.tar.gz
external_llvm-9e999adb48beb61663f6abca667b8c85068ee585.tar.bz2
Debug Info: use SmallVector instead of std::vector in MCDwarfDirsCUMap and MCDwarfFilesCUMap
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@176893 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm')
-rw-r--r--include/llvm/MC/MCContext.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/include/llvm/MC/MCContext.h b/include/llvm/MC/MCContext.h
index 1251c5f..0db3dee 100644
--- a/include/llvm/MC/MCContext.h
+++ b/include/llvm/MC/MCContext.h
@@ -11,6 +11,7 @@
#define LLVM_MC_MCCONTEXT_H
#include "llvm/ADT/DenseMap.h"
+#include "llvm/ADT/SmallVector.h"
#include "llvm/ADT/StringMap.h"
#include "llvm/MC/MCDwarf.h"
#include "llvm/MC/SectionKind.h"
@@ -105,9 +106,9 @@ namespace llvm {
/// We now emit a line table for each compile unit. To reduce the prologue
/// size of each line table, the files and directories used by each compile
/// unit are separated.
- typedef std::map<unsigned, std::vector<MCDwarfFile *> > MCDwarfFilesMap;
+ typedef std::map<unsigned, SmallVector<MCDwarfFile *, 4> > MCDwarfFilesMap;
MCDwarfFilesMap MCDwarfFilesCUMap;
- std::map<unsigned, std::vector<StringRef> > MCDwarfDirsCUMap;
+ std::map<unsigned, SmallVector<StringRef, 4> > MCDwarfDirsCUMap;
/// The current dwarf line information from the last dwarf .loc directive.
MCDwarfLoc CurrentDwarfLoc;
@@ -301,10 +302,10 @@ namespace llvm {
return false;
}
- const std::vector<MCDwarfFile *> &getMCDwarfFiles(unsigned CUID = 0) {
+ const SmallVectorImpl<MCDwarfFile *> &getMCDwarfFiles(unsigned CUID = 0) {
return MCDwarfFilesCUMap[CUID];
}
- const std::vector<StringRef> &getMCDwarfDirs(unsigned CUID = 0) {
+ const SmallVectorImpl<StringRef> &getMCDwarfDirs(unsigned CUID = 0) {
return MCDwarfDirsCUMap[CUID];
}