MCDwarf: Oh, and move the directory string over to std::string as well

(see r203831 for similar stuff)

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203833 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
David Blaikie
2014-03-13 19:05:33 +00:00
parent 8c987f5340
commit 43e7eb8ff4
4 changed files with 9 additions and 12 deletions

View File

@@ -325,7 +325,7 @@ namespace llvm {
const SmallVectorImpl<MCDwarfFile> &getMCDwarfFiles(unsigned CUID = 0) {
return getMCDwarfFileTable(CUID).getMCDwarfFiles();
}
const SmallVectorImpl<StringRef> &getMCDwarfDirs(unsigned CUID = 0) {
const SmallVectorImpl<std::string> &getMCDwarfDirs(unsigned CUID = 0) {
return getMCDwarfFileTable(CUID).getMCDwarfDirs();
}

View File

@@ -22,6 +22,7 @@
#include "llvm/Support/raw_ostream.h"
#include <map>
#include <vector>
#include <string>
namespace llvm {
class MCAsmBackend;
@@ -175,7 +176,7 @@ public:
class MCDwarfFileTable {
MCSymbol *Label;
SmallVector<StringRef, 3> MCDwarfDirs;
SmallVector<std::string, 3> MCDwarfDirs;
SmallVector<MCDwarfFile, 3> MCDwarfFiles;
MCLineSection MCLineSections;
@@ -189,11 +190,11 @@ public:
//
const MCSymbol *EmitCU(MCStreamer *MCOS) const;
const SmallVectorImpl<StringRef> &getMCDwarfDirs() const {
const SmallVectorImpl<std::string> &getMCDwarfDirs() const {
return MCDwarfDirs;
}
SmallVectorImpl<StringRef> &getMCDwarfDirs() {
SmallVectorImpl<std::string> &getMCDwarfDirs() {
return MCDwarfDirs;
}