OSDN Git Service

MCDwarf: Simplify MCDwarfFile to just use std::string instead of cunning use of MCCon...
authorDavid Blaikie <dblaikie@gmail.com>
Thu, 13 Mar 2014 18:55:04 +0000 (18:55 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Thu, 13 Mar 2014 18:55:04 +0000 (18:55 +0000)
commit8c987f534048928a7242e5edeac09b07de353a3d
tree8dbf0bde8da3c7d3dcf1fd186ec6f8d6ee80ecb1
parented2ca70ccff2e2654a41d6d9fc74683d6ec0a2ff
MCDwarf: Simplify MCDwarfFile to just use std::string instead of cunning use of MCContext's allocator.

There aren't /that/ many files, and we are already using various maps
and other standard containers that don't use MCContext's allocator to
store these values, so this doesn't seem to be critical and simplifies
the design (I'll be moving construction out of MCContext shortly so it'd
be annoying to have to pass the allocator around to allocate these
things... and we'll have non-MCContext users (debug_line.dwo) shortly)

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203831 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/MC/MCContext.h
include/llvm/MC/MCDwarf.h
lib/MC/MCContext.cpp
lib/MC/MCDwarf.cpp
lib/MC/MCParser/AsmParser.cpp