aboutsummaryrefslogtreecommitdiff
path: root/tools/llvm-objdump/MCFunction.cpp
diff options
context:
space:
mode:
authorFrancois Pichet <pichet2000@gmail.com>2011-07-20 21:35:29 +0000
committerFrancois Pichet <pichet2000@gmail.com>2011-07-20 21:35:29 +0000
commitc3d48cee49257ea1666986d98c5d268262ad1e9b (patch)
tree6dfd6eaa6a3e2d0a699965073b3f8d8b18ea94e6 /tools/llvm-objdump/MCFunction.cpp
parent1769a3df4a81309ec055a8586c8ac35755fa79a2 (diff)
Unbreak the MSVC build. Since the "next" function already exists in the MSVC headers, we need the explicit llvm:: qualifier to prevent a conflict.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135623 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/llvm-objdump/MCFunction.cpp')
-rw-r--r--tools/llvm-objdump/MCFunction.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/llvm-objdump/MCFunction.cpp b/tools/llvm-objdump/MCFunction.cpp
index dd31402ddc..eef58cd13e 100644
--- a/tools/llvm-objdump/MCFunction.cpp
+++ b/tools/llvm-objdump/MCFunction.cpp
@@ -95,7 +95,7 @@ MCFunction::createFunctionFromMC(StringRef Name, const MCDisassembler *DisAsm,
BB.addSucc(&f.getBlockAtAddress(Inst.Address+Inst.Size+Imm));
// Conditional branches can also fall through to the next block.
if (Desc.isConditionalBranch() && llvm::next(i) != e)
- BB.addSucc(&next(i)->second);
+ BB.addSucc(&llvm::next(i)->second);
} else {
// Indirect branch. Bail and add all blocks of the function as a
// successor.
@@ -104,8 +104,8 @@ MCFunction::createFunctionFromMC(StringRef Name, const MCDisassembler *DisAsm,
}
} else {
// No branch. Fall through to the next block.
- if (!Desc.isReturn() && next(i) != e)
- BB.addSucc(&next(i)->second);
+ if (!Desc.isReturn() && llvm::next(i) != e)
+ BB.addSucc(&llvm::next(i)->second);
}
}