[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)
commit9d95716c159ca4a07b435ec65943fa475cacc997
tree8b489bd3b70ebc7aecc0b821fb247e3b19cb330a
parent3eb434acf408b590f6631f87719895154cf2ff13
[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

llvm-svn: 240364
llvm/include/llvm/CodeGen/FaultMaps.h
llvm/include/llvm/Object/FaultMapParser.h [new file with mode: 0644]
llvm/lib/CodeGen/FaultMaps.cpp
llvm/lib/Object/CMakeLists.txt
llvm/lib/Object/FaultMapParser.cpp [new file with mode: 0644]
llvm/tools/llvm-objdump/llvm-objdump.cpp