diff options
author | Will Dietz <wdietz2@illinois.edu> | 2013-10-12 21:29:16 +0000 |
---|---|---|
committer | Will Dietz <wdietz2@illinois.edu> | 2013-10-12 21:29:16 +0000 |
commit | 6dd7893e8c7234d65cdc47e3f3ce251fdfb35768 (patch) | |
tree | 30eda9025a70977ccdc5b8cdf6d3a26c253196aa /tools/yaml2obj/yaml2coff.cpp | |
parent | 24732c3363a9a442c14cf236c3de1086cdee6000 (diff) | |
download | llvm-6dd7893e8c7234d65cdc47e3f3ce251fdfb35768.tar.gz llvm-6dd7893e8c7234d65cdc47e3f3ce251fdfb35768.tar.bz2 llvm-6dd7893e8c7234d65cdc47e3f3ce251fdfb35768.tar.xz |
yaml2coff/elf: Touchup for compatibility.
* std::string::append(int, int) can be ambiguous.
* std::vector<>::data() is a C++11 feature, use ArrayRef abstraction.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@192542 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/yaml2obj/yaml2coff.cpp')
-rw-r--r-- | tools/yaml2obj/yaml2coff.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/yaml2obj/yaml2coff.cpp b/tools/yaml2obj/yaml2coff.cpp index 11aae0e68b..c757eb64fb 100644 --- a/tools/yaml2obj/yaml2coff.cpp +++ b/tools/yaml2obj/yaml2coff.cpp @@ -32,7 +32,7 @@ struct COFFParser { COFFParser(COFFYAML::Object &Obj) : Obj(Obj) { // A COFF string table always starts with a 4 byte size field. Offsets into // it include this size, so allocate it now. - StringTable.append(4, 0); + StringTable.append(4, char(0)); } bool parseSections() { |