diff options
-rw-r--r-- | include/llvm/IR/LeakDetector.h (renamed from include/llvm/Support/LeakDetector.h) | 6 | ||||
-rw-r--r-- | lib/CodeGen/MachineBasicBlock.cpp | 2 | ||||
-rw-r--r-- | lib/IR/BasicBlock.cpp | 2 | ||||
-rw-r--r-- | lib/IR/Function.cpp | 2 | ||||
-rw-r--r-- | lib/IR/Globals.cpp | 2 | ||||
-rw-r--r-- | lib/IR/Instruction.cpp | 2 | ||||
-rw-r--r-- | lib/IR/LeakDetector.cpp | 2 | ||||
-rw-r--r-- | lib/IR/Metadata.cpp | 2 | ||||
-rw-r--r-- | lib/IR/Module.cpp | 2 | ||||
-rw-r--r-- | lib/IR/Value.cpp | 2 | ||||
-rw-r--r-- | unittests/IR/CMakeLists.txt | 1 | ||||
-rw-r--r-- | unittests/IR/LeakDetectorTest.cpp (renamed from unittests/Support/LeakDetectorTest.cpp) | 4 | ||||
-rw-r--r-- | unittests/Support/CMakeLists.txt | 1 |
13 files changed, 15 insertions, 15 deletions
diff --git a/include/llvm/Support/LeakDetector.h b/include/llvm/IR/LeakDetector.h index 501a9db72c..cb18df8758 100644 --- a/include/llvm/Support/LeakDetector.h +++ b/include/llvm/IR/LeakDetector.h @@ -1,4 +1,4 @@ -//===-- llvm/Support/LeakDetector.h - Provide leak detection ----*- C++ -*-===// +//===- LeakDetector.h - Provide leak detection ------------------*- C++ -*-===// // // The LLVM Compiler Infrastructure // @@ -19,8 +19,8 @@ // //===----------------------------------------------------------------------===// -#ifndef LLVM_SUPPORT_LEAKDETECTOR_H -#define LLVM_SUPPORT_LEAKDETECTOR_H +#ifndef LLVM_IR_LEAKDETECTOR_H +#define LLVM_IR_LEAKDETECTOR_H #include <string> diff --git a/lib/CodeGen/MachineBasicBlock.cpp b/lib/CodeGen/MachineBasicBlock.cpp index 769ba2a255..077e74db73 100644 --- a/lib/CodeGen/MachineBasicBlock.cpp +++ b/lib/CodeGen/MachineBasicBlock.cpp @@ -24,10 +24,10 @@ #include "llvm/CodeGen/SlotIndexes.h" #include "llvm/IR/BasicBlock.h" #include "llvm/IR/DataLayout.h" +#include "llvm/IR/LeakDetector.h" #include "llvm/MC/MCAsmInfo.h" #include "llvm/MC/MCContext.h" #include "llvm/Support/Debug.h" -#include "llvm/Support/LeakDetector.h" #include "llvm/Support/raw_ostream.h" #include "llvm/Target/TargetInstrInfo.h" #include "llvm/Target/TargetMachine.h" diff --git a/lib/IR/BasicBlock.cpp b/lib/IR/BasicBlock.cpp index 1b1236bd68..ef264d27fc 100644 --- a/lib/IR/BasicBlock.cpp +++ b/lib/IR/BasicBlock.cpp @@ -19,8 +19,8 @@ #include "llvm/IR/Instructions.h" #include "llvm/IR/IntrinsicInst.h" #include "llvm/IR/LLVMContext.h" +#include "llvm/IR/LeakDetector.h" #include "llvm/IR/Type.h" -#include "llvm/Support/LeakDetector.h" #include <algorithm> using namespace llvm; diff --git a/lib/IR/Function.cpp b/lib/IR/Function.cpp index 6d418a4c36..72f38c5475 100644 --- a/lib/IR/Function.cpp +++ b/lib/IR/Function.cpp @@ -23,8 +23,8 @@ #include "llvm/IR/InstIterator.h" #include "llvm/IR/IntrinsicInst.h" #include "llvm/IR/LLVMContext.h" +#include "llvm/IR/LeakDetector.h" #include "llvm/IR/Module.h" -#include "llvm/Support/LeakDetector.h" #include "llvm/Support/ManagedStatic.h" #include "llvm/Support/RWMutex.h" #include "llvm/Support/StringPool.h" diff --git a/lib/IR/Globals.cpp b/lib/IR/Globals.cpp index ee882c3eac..11152d5d6c 100644 --- a/lib/IR/Globals.cpp +++ b/lib/IR/Globals.cpp @@ -18,9 +18,9 @@ #include "llvm/IR/DerivedTypes.h" #include "llvm/IR/GlobalAlias.h" #include "llvm/IR/GlobalVariable.h" +#include "llvm/IR/LeakDetector.h" #include "llvm/IR/Module.h" #include "llvm/Support/ErrorHandling.h" -#include "llvm/Support/LeakDetector.h" using namespace llvm; //===----------------------------------------------------------------------===// diff --git a/lib/IR/Instruction.cpp b/lib/IR/Instruction.cpp index a08cd9ff10..4bcf7484d6 100644 --- a/lib/IR/Instruction.cpp +++ b/lib/IR/Instruction.cpp @@ -15,10 +15,10 @@ #include "llvm/IR/CallSite.h" #include "llvm/IR/Constants.h" #include "llvm/IR/Instructions.h" +#include "llvm/IR/LeakDetector.h" #include "llvm/IR/Module.h" #include "llvm/IR/Operator.h" #include "llvm/IR/Type.h" -#include "llvm/Support/LeakDetector.h" using namespace llvm; Instruction::Instruction(Type *ty, unsigned it, Use *Ops, unsigned NumOps, diff --git a/lib/IR/LeakDetector.cpp b/lib/IR/LeakDetector.cpp index 835e5e61cd..6f71627fcf 100644 --- a/lib/IR/LeakDetector.cpp +++ b/lib/IR/LeakDetector.cpp @@ -11,7 +11,7 @@ // //===----------------------------------------------------------------------===// -#include "llvm/Support/LeakDetector.h" +#include "llvm/IR/LeakDetector.h" #include "LLVMContextImpl.h" #include "llvm/ADT/SmallPtrSet.h" #include "llvm/IR/Value.h" diff --git a/lib/IR/Metadata.cpp b/lib/IR/Metadata.cpp index d46eec69f5..f8a1776599 100644 --- a/lib/IR/Metadata.cpp +++ b/lib/IR/Metadata.cpp @@ -22,9 +22,9 @@ #include "llvm/IR/ConstantRange.h" #include "llvm/IR/Instruction.h" #include "llvm/IR/LLVMContext.h" +#include "llvm/IR/LeakDetector.h" #include "llvm/IR/Module.h" #include "llvm/IR/ValueHandle.h" -#include "llvm/Support/LeakDetector.h" using namespace llvm; //===----------------------------------------------------------------------===// diff --git a/lib/IR/Module.cpp b/lib/IR/Module.cpp index 4204c8ef5f..d3ef2195a8 100644 --- a/lib/IR/Module.cpp +++ b/lib/IR/Module.cpp @@ -22,7 +22,7 @@ #include "llvm/IR/DerivedTypes.h" #include "llvm/IR/InstrTypes.h" #include "llvm/IR/LLVMContext.h" -#include "llvm/Support/LeakDetector.h" +#include "llvm/IR/LeakDetector.h" #include <algorithm> #include <cstdarg> #include <cstdlib> diff --git a/lib/IR/Value.cpp b/lib/IR/Value.cpp index eb12bc5a8e..bdb544bef4 100644 --- a/lib/IR/Value.cpp +++ b/lib/IR/Value.cpp @@ -21,13 +21,13 @@ #include "llvm/IR/GetElementPtrTypeIterator.h" #include "llvm/IR/InstrTypes.h" #include "llvm/IR/Instructions.h" +#include "llvm/IR/LeakDetector.h" #include "llvm/IR/Module.h" #include "llvm/IR/Operator.h" #include "llvm/IR/ValueHandle.h" #include "llvm/IR/ValueSymbolTable.h" #include "llvm/Support/Debug.h" #include "llvm/Support/ErrorHandling.h" -#include "llvm/Support/LeakDetector.h" #include "llvm/Support/ManagedStatic.h" #include <algorithm> using namespace llvm; diff --git a/unittests/IR/CMakeLists.txt b/unittests/IR/CMakeLists.txt index e1c295d0be..7368a24051 100644 --- a/unittests/IR/CMakeLists.txt +++ b/unittests/IR/CMakeLists.txt @@ -13,6 +13,7 @@ set(IRSources DominatorTreeTest.cpp IRBuilderTest.cpp InstructionsTest.cpp + LeakDetectorTest.cpp LegacyPassManagerTest.cpp MDBuilderTest.cpp MetadataTest.cpp diff --git a/unittests/Support/LeakDetectorTest.cpp b/unittests/IR/LeakDetectorTest.cpp index d198c7a8bd..94eed4c143 100644 --- a/unittests/Support/LeakDetectorTest.cpp +++ b/unittests/IR/LeakDetectorTest.cpp @@ -1,4 +1,4 @@ -//===- llvm/unittest/LeakDetector/LeakDetector.cpp - LeakDetector tests ---===// +//===- LeakDetectorTest.cpp -----------------------------------------------===// // // The LLVM Compiler Infrastructure // @@ -7,8 +7,8 @@ // //===----------------------------------------------------------------------===// +#include "llvm/IR/LeakDetector.h" #include "gtest/gtest.h" -#include "llvm/Support/LeakDetector.h" using namespace llvm; diff --git a/unittests/Support/CMakeLists.txt b/unittests/Support/CMakeLists.txt index 9df2e17277..93f707e4e2 100644 --- a/unittests/Support/CMakeLists.txt +++ b/unittests/Support/CMakeLists.txt @@ -17,7 +17,6 @@ add_llvm_unittest(SupportTests ErrorOrTest.cpp FileOutputBufferTest.cpp LEB128Test.cpp - LeakDetectorTest.cpp LineIteratorTest.cpp LockFileManagerTest.cpp ManagedStatic.cpp |