summaryrefslogtreecommitdiffstats
path: root/lld/lib/ReaderWriter/ELF/Hexagon/HexagonRelocationHandler.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2014-06-12 21:35:33 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2014-06-12 21:35:33 +0000
commitf743031b8b923efe8c534bd56b51bb566f36b9cf (patch)
treeece5edadff5d28b161492d24c27869d4fafbab14 /lld/lib/ReaderWriter/ELF/Hexagon/HexagonRelocationHandler.cpp
parentd31b63e6ae3dfa9d28ef98e093fdbe5f5113161f (diff)
downloadbcm5719-llvm-f743031b8b923efe8c534bd56b51bb566f36b9cf.tar.gz
bcm5719-llvm-f743031b8b923efe8c534bd56b51bb566f36b9cf.zip
More prefixing of error_code.
llvm-svn: 210831
Diffstat (limited to 'lld/lib/ReaderWriter/ELF/Hexagon/HexagonRelocationHandler.cpp')
-rw-r--r--lld/lib/ReaderWriter/ELF/Hexagon/HexagonRelocationHandler.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/lld/lib/ReaderWriter/ELF/Hexagon/HexagonRelocationHandler.cpp b/lld/lib/ReaderWriter/ELF/Hexagon/HexagonRelocationHandler.cpp
index 89402eadf29..c7df3939c14 100644
--- a/lld/lib/ReaderWriter/ELF/Hexagon/HexagonRelocationHandler.cpp
+++ b/lld/lib/ReaderWriter/ELF/Hexagon/HexagonRelocationHandler.cpp
@@ -211,7 +211,7 @@ static int relocHexGOTREL_32(uint8_t *location, uint64_t P, uint64_t S,
return 0;
}
-error_code HexagonTargetRelocationHandler::applyRelocation(
+std::error_code HexagonTargetRelocationHandler::applyRelocation(
ELFWriter &writer, llvm::FileOutputBuffer &buf, const lld::AtomLayout &atom,
const Reference &ref) const {
uint8_t *atomContent = buf.getBufferStart() + atom._fileOffset;
@@ -220,7 +220,7 @@ error_code HexagonTargetRelocationHandler::applyRelocation(
uint64_t relocVAddress = atom._virtualAddr + ref.offsetInAtom();
if (ref.kindNamespace() != Reference::KindNamespace::ELF)
- return error_code();
+ return std::error_code();
assert(ref.kindArch() == Reference::KindArch::Hexagon);
switch (ref.kindValue()) {
case R_HEX_B22_PCREL:
@@ -353,7 +353,7 @@ error_code HexagonTargetRelocationHandler::applyRelocation(
}
}
- return error_code();
+ return std::error_code();
}
OpenPOWER on IntegriCloud