]> granicus.if.org Git - llvm/commitdiff
[ARM] Moved ARMAttributeParser to Support
authorSam Parker <sam.parker@arm.com>
Fri, 13 Jan 2017 10:50:01 +0000 (10:50 +0000)
committerSam Parker <sam.parker@arm.com>
Fri, 13 Jan 2017 10:50:01 +0000 (10:50 +0000)
Moved ARMAttributeParser out of llvm-readobj and into the support
library.

Differential Revision: https://reviews.llvm.org/D28227

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@291896 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Support/ARMAttributeParser.h [moved from tools/llvm-readobj/ARMAttributeParser.h with 96% similarity]
lib/Support/ARMAttributeParser.cpp [moved from tools/llvm-readobj/ARMAttributeParser.cpp with 99% similarity]
lib/Support/CMakeLists.txt
tools/llvm-readobj/CMakeLists.txt
tools/llvm-readobj/ELFDumper.cpp

similarity index 96%
rename from tools/llvm-readobj/ARMAttributeParser.h
rename to include/llvm/Support/ARMAttributeParser.h
index 6936b70ca123069fa08cbe7f5c86bdd618bc51f8..48c6c8e912ef5e130783cd6ac3b86033b5845e1b 100644 (file)
@@ -7,11 +7,11 @@
 //
 //===----------------------------------------------------------------------===//
 
-#ifndef LLVM_TOOLS_LLVM_READOBJ_ARMATTRIBUTEPARSER_H
-#define LLVM_TOOLS_LLVM_READOBJ_ARMATTRIBUTEPARSER_H
+#ifndef LLVM_SUPPORT_ARMATTRIBUTEPARSER_H
+#define LLVM_SUPPORT_ARMATTRIBUTEPARSER_H
 
-#include "llvm/Support/ARMBuildAttributes.h"
-#include "llvm/Support/ScopedPrinter.h"
+#include "ARMBuildAttributes.h"
+#include "ScopedPrinter.h"
 
 namespace llvm {
 class StringRef;
similarity index 99%
rename from tools/llvm-readobj/ARMAttributeParser.cpp
rename to lib/Support/ARMAttributeParser.cpp
index 877dd71c907060d5a56294e976abf942096b0976..792510e6b8496ffdab698b9a5a050391d3e647a2 100644 (file)
@@ -7,9 +7,9 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "ARMAttributeParser.h"
 #include "llvm/ADT/STLExtras.h"
 #include "llvm/ADT/StringExtras.h"
+#include "llvm/Support/ARMAttributeParser.h"
 #include "llvm/Support/LEB128.h"
 #include "llvm/Support/ScopedPrinter.h"
 
index 15418ad2fd064f356d7c768dc15066d6695dda17..3301364cf2c6ad52849c40ff5832722f3aa8c4de 100644 (file)
@@ -31,6 +31,7 @@ add_llvm_library(LLVMSupport
   APInt.cpp
   APSInt.cpp
   ARMBuildAttrs.cpp
+  ARMAttributeParser.cpp
   ARMWinEH.cpp
   Allocator.cpp
   BlockFrequency.cpp
index 0f8336ffd3265060cde4ccc2e3c17639ff7c74f3..d4b7125dbbbc626c51c9105aac235cb99d2baee2 100644 (file)
@@ -7,7 +7,6 @@ set(LLVM_LINK_COMPONENTS
   )
 
 add_llvm_tool(llvm-readobj
-  ARMAttributeParser.cpp
   ARMWinEHPrinter.cpp
   COFFDumper.cpp
   COFFImportDumper.cpp
index 997af568d39446a0e06d4c930eb7aeee0daa6cbf..54ef7fbdd30cf8fdea3f013646bedc4793ec5fb5 100644 (file)
@@ -12,7 +12,6 @@
 ///
 //===----------------------------------------------------------------------===//
 
-#include "ARMAttributeParser.h"
 #include "ARMEHABIPrinter.h"
 #include "Error.h"
 #include "ObjDumper.h"
@@ -22,6 +21,7 @@
 #include "llvm/ADT/SmallString.h"
 #include "llvm/ADT/StringExtras.h"
 #include "llvm/Object/ELFObjectFile.h"
+#include "llvm/Support/ARMAttributeParser.h"
 #include "llvm/Support/ARMBuildAttributes.h"
 #include "llvm/Support/Compiler.h"
 #include "llvm/Support/Format.h"