From 4d906381307334cfed187226c548129c3421d0c4 Mon Sep 17 00:00:00 2001 From: Benjamin Kramer Date: Mon, 19 Sep 2011 20:08:52 +0000 Subject: Try to make MSVC 2010 happy. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140042 91177308-0d34-0410-b5e6-96231b3b80d8 --- tools/llvm-objdump/MachODump.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tools/llvm-objdump/MachODump.cpp') diff --git a/tools/llvm-objdump/MachODump.cpp b/tools/llvm-objdump/MachODump.cpp index 49687d1cea..3085348605 100644 --- a/tools/llvm-objdump/MachODump.cpp +++ b/tools/llvm-objdump/MachODump.cpp @@ -271,7 +271,7 @@ void llvm::DisassembleInputMachO(StringRef Filename) { uint64_t VMAddr = Sections[SectIdx].Address - Sections[SectIdx].Offset; for (unsigned i = 0, e = FoundFns.size(); i != e; ++i) - FunctionMap.insert(std::pair(FoundFns[i]+VMAddr,0)); + FunctionMap.insert(std::make_pair(FoundFns[i]+VMAddr, (MCFunction*)0)); StringRef Bytes = MachOObj->getData(Sections[SectIdx].Offset, Sections[SectIdx].Size); @@ -335,7 +335,7 @@ void llvm::DisassembleInputMachO(StringRef Filename) { FunctionMap[Start] = &Functions.back(); for (unsigned i = 0, e = Calls.size(); i != e; ++i) - FunctionMap.insert(std::pair(Calls[i], 0)); + FunctionMap.insert(std::make_pair(Calls[i], (MCFunction*)0)); } } -- cgit v1.2.3