diff options
author | Chandler Carruth <chandlerc@gmail.com> | 2014-01-07 12:34:26 +0000 |
---|---|---|
committer | Chandler Carruth <chandlerc@gmail.com> | 2014-01-07 12:34:26 +0000 |
commit | bc65a8d518ebe0408deb15d9314fd2ff5cbd0686 (patch) | |
tree | 82bd288d014ea25cb1c5ec67387c1d2eb438e517 /include | |
parent | 974a445bd90795248274493eda5cdbf6721910f7 (diff) | |
download | llvm-bc65a8d518ebe0408deb15d9314fd2ff5cbd0686.tar.gz llvm-bc65a8d518ebe0408deb15d9314fd2ff5cbd0686.tar.bz2 llvm-bc65a8d518ebe0408deb15d9314fd2ff5cbd0686.tar.xz |
Move the LLVM IR asm writer header files into the IR directory, as they
are part of the core IR library in order to support dumping and other
basic functionality.
Rename the 'Assembly' include directory to 'AsmParser' to match the
library name and the only functionality left their -- printing has been
in the core IR library for quite some time.
Update all of the #includes to match.
All of this started because I wanted to have the layering in good shape
before I started adding support for printing LLVM IR using the new pass
infrastructure, and commandline support for the new pass infrastructure.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@198688 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/Analysis/CFGPrinter.h | 2 | ||||
-rw-r--r-- | include/llvm/AsmParser/Parser.h (renamed from include/llvm/Assembly/Parser.h) | 6 | ||||
-rw-r--r-- | include/llvm/IR/AssemblyAnnotationWriter.h (renamed from include/llvm/Assembly/AssemblyAnnotationWriter.h) | 4 | ||||
-rw-r--r-- | include/llvm/IR/PrintModulePass.h (renamed from include/llvm/Assembly/PrintModulePass.h) | 6 | ||||
-rw-r--r-- | include/llvm/IR/Writer.h (renamed from include/llvm/Assembly/Writer.h) | 8 | ||||
-rw-r--r-- | include/llvm/LinkAllPasses.h | 2 |
6 files changed, 14 insertions, 14 deletions
diff --git a/include/llvm/Analysis/CFGPrinter.h b/include/llvm/Analysis/CFGPrinter.h index 39e90eb96a..b28621528b 100644 --- a/include/llvm/Analysis/CFGPrinter.h +++ b/include/llvm/Analysis/CFGPrinter.h @@ -15,10 +15,10 @@ #ifndef LLVM_ANALYSIS_CFGPRINTER_H #define LLVM_ANALYSIS_CFGPRINTER_H -#include "llvm/Assembly/Writer.h" #include "llvm/IR/Constants.h" #include "llvm/IR/Function.h" #include "llvm/IR/Instructions.h" +#include "llvm/IR/Writer.h" #include "llvm/Support/CFG.h" #include "llvm/Support/GraphWriter.h" diff --git a/include/llvm/Assembly/Parser.h b/include/llvm/AsmParser/Parser.h index b971c531ae..165c46d6f2 100644 --- a/include/llvm/Assembly/Parser.h +++ b/include/llvm/AsmParser/Parser.h @@ -1,4 +1,4 @@ -//===-- llvm/Assembly/Parser.h - Parser for VM assembly files ---*- C++ -*-===// +//===-- Parser.h - Parser for LLVM IR text assembly files -------*- C++ -*-===// // // The LLVM Compiler Infrastructure // @@ -11,8 +11,8 @@ // //===----------------------------------------------------------------------===// -#ifndef LLVM_ASSEMBLY_PARSER_H -#define LLVM_ASSEMBLY_PARSER_H +#ifndef LLVM_ASMPARSER_PARSER_H +#define LLVM_ASMPARSER_PARSER_H #include <string> diff --git a/include/llvm/Assembly/AssemblyAnnotationWriter.h b/include/llvm/IR/AssemblyAnnotationWriter.h index 37b47c31e8..a8d52f6817 100644 --- a/include/llvm/Assembly/AssemblyAnnotationWriter.h +++ b/include/llvm/IR/AssemblyAnnotationWriter.h @@ -14,8 +14,8 @@ // //===----------------------------------------------------------------------===// -#ifndef LLVM_ASSEMBLY_ASMANNOTATIONWRITER_H -#define LLVM_ASSEMBLY_ASMANNOTATIONWRITER_H +#ifndef LLVM_IR_ASMANNOTATIONWRITER_H +#define LLVM_IR_ASMANNOTATIONWRITER_H namespace llvm { diff --git a/include/llvm/Assembly/PrintModulePass.h b/include/llvm/IR/PrintModulePass.h index 02b9bd9be5..a7be1c9737 100644 --- a/include/llvm/Assembly/PrintModulePass.h +++ b/include/llvm/IR/PrintModulePass.h @@ -1,4 +1,4 @@ -//===- llvm/Assembly/PrintModulePass.h - Printing Pass ----------*- C++ -*-===// +//===- PrintModulePass.h - IR Printing Passes -------------------*- C++ -*-===// // // The LLVM Compiler Infrastructure // @@ -15,8 +15,8 @@ // //===----------------------------------------------------------------------===// -#ifndef LLVM_ASSEMBLY_PRINTMODULEPASS_H -#define LLVM_ASSEMBLY_PRINTMODULEPASS_H +#ifndef LLVM_IR_PRINTMODULEPASS_H +#define LLVM_IR_PRINTMODULEPASS_H #include <string> diff --git a/include/llvm/Assembly/Writer.h b/include/llvm/IR/Writer.h index 6b89ae022d..d1685e96dc 100644 --- a/include/llvm/Assembly/Writer.h +++ b/include/llvm/IR/Writer.h @@ -1,4 +1,4 @@ -//===-- llvm/Assembly/Writer.h - Printer for LLVM assembly files --*- C++ -*-=// +//===-- Writer.h - Printer for LLVM IR assembly files -------------*- C++ -*-=// // // The LLVM Compiler Infrastructure // @@ -7,15 +7,15 @@ // //===----------------------------------------------------------------------===// // -// This functionality is implemented by lib/VMCore/AsmWriter.cpp. +// This functionality is implemented by lib/IR/AsmWriter.cpp. // This library is used to print LLVM assembly language files to an iostream. It // can print LLVM code at a variety of granularities, including Modules, // BasicBlocks, and Instructions. This makes it useful for debugging. // //===----------------------------------------------------------------------===// -#ifndef LLVM_ASSEMBLY_WRITER_H -#define LLVM_ASSEMBLY_WRITER_H +#ifndef LLVM_IR_WRITER_H +#define LLVM_IR_WRITER_H namespace llvm { diff --git a/include/llvm/LinkAllPasses.h b/include/llvm/LinkAllPasses.h index 587d705f63..106267acc1 100644 --- a/include/llvm/LinkAllPasses.h +++ b/include/llvm/LinkAllPasses.h @@ -26,9 +26,9 @@ #include "llvm/Analysis/RegionPass.h" #include "llvm/Analysis/RegionPrinter.h" #include "llvm/Analysis/ScalarEvolution.h" -#include "llvm/Assembly/PrintModulePass.h" #include "llvm/CodeGen/Passes.h" #include "llvm/IR/Function.h" +#include "llvm/IR/PrintModulePass.h" #include "llvm/Transforms/IPO.h" #include "llvm/Transforms/Instrumentation.h" #include "llvm/Transforms/ObjCARC.h" |