From 953af053eb35f80e6e7b211d5c1e157c0dfa8474 Mon Sep 17 00:00:00 2001 From: Owen Anderson Date: Mon, 24 Oct 2011 20:19:18 +0000 Subject: Stub out some of the MachO relocation decoding hooks. llvm-svn: 142840 --- llvm/lib/Object/MachOObjectFile.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'llvm/lib/Object/MachOObjectFile.cpp') diff --git a/llvm/lib/Object/MachOObjectFile.cpp b/llvm/lib/Object/MachOObjectFile.cpp index 7c6c232e63d..19396be05d3 100644 --- a/llvm/lib/Object/MachOObjectFile.cpp +++ b/llvm/lib/Object/MachOObjectFile.cpp @@ -641,6 +641,8 @@ error_code MachOObjectFile::getRelocationType(DataRefImpl Rel, } error_code MachOObjectFile::getRelocationTypeName(DataRefImpl Rel, SmallVectorImpl &Result) const { + StringRef res = "Unknown"; + Result.append(res.begin(), res.end()); return object_error::success; } error_code MachOObjectFile::getRelocationAdditionalInfo(DataRefImpl Rel, @@ -666,6 +668,8 @@ error_code MachOObjectFile::getRelocationAdditionalInfo(DataRefImpl Rel, } error_code MachOObjectFile::getRelocationValueString(DataRefImpl Rel, SmallVectorImpl &Result) const { + StringRef res = "Unknown"; + Result.append(res.begin(), res.end()); return object_error::success; } -- cgit v1.2.3