[FaultMaps] Move FaultMapParser to Object/
authorSanjoy Das <sanjoy@playingwithpointers.com>
Tue, 23 Jun 2015 01:05:26 +0000 (01:05 +0000)
committerSanjoy Das <sanjoy@playingwithpointers.com>
Tue, 23 Jun 2015 01:05:26 +0000 (01:05 +0000)
commitc49542e5bb186ba4e1b6d76fb34df1a3b9d7c168
tree138d60c6842dd9210b20cb5a17cb3ae0a3876f59
parent14b492752cdf4702a198a45a7174673a14dcf819
[FaultMaps] Move FaultMapParser to Object/

Summary:
That way llvm-objdump can rely on it without adding an extra dependency
on CodeGen.

This change duplicates the FaultKind enum and the code that serializes
it to a string.  I could not figure out a way to get around this without
adding a new dependency to Object

Reviewers: rafael, ab

Subscribers: llvm-commits

Differential Revision: http://reviews.llvm.org/D10619

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@240364 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/CodeGen/FaultMaps.h
include/llvm/Object/FaultMapParser.h [new file with mode: 0644]
lib/CodeGen/FaultMaps.cpp
lib/Object/CMakeLists.txt
lib/Object/FaultMapParser.cpp [new file with mode: 0644]
tools/llvm-objdump/llvm-objdump.cpp