aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-08-12 23:34:27 +0000
committerChris Lattner <sabre@nondot.org>2009-08-12 23:34:27 +0000
commitd3c4486f46226fb328ceb16d55927472fb3e0f6d (patch)
tree067c9e973b29bf0f0e13ccc25dc1eee141f6bb12
parent3845e50edea58edd0f5e0f2b732e0106b53ba279 (diff)
downloadexternal_llvm-d3c4486f46226fb328ceb16d55927472fb3e0f6d.zip
external_llvm-d3c4486f46226fb328ceb16d55927472fb3e0f6d.tar.gz
external_llvm-d3c4486f46226fb328ceb16d55927472fb3e0f6d.tar.bz2
reduce #includage
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78860 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/llvm/Target/TargetLoweringObjectFile.h11
-rw-r--r--lib/Target/TargetLoweringObjectFile.cpp2
2 files changed, 7 insertions, 6 deletions
diff --git a/include/llvm/Target/TargetLoweringObjectFile.h b/include/llvm/Target/TargetLoweringObjectFile.h
index 2ca1963..b671082 100644
--- a/include/llvm/Target/TargetLoweringObjectFile.h
+++ b/include/llvm/Target/TargetLoweringObjectFile.h
@@ -15,15 +15,14 @@
#ifndef LLVM_TARGET_TARGETLOWERINGOBJECTFILE_H
#define LLVM_TARGET_TARGETLOWERINGOBJECTFILE_H
-#include "llvm/ADT/SmallVector.h"
-#include "llvm/ADT/StringMap.h"
#include "llvm/MC/SectionKind.h"
namespace llvm {
+ class Mangler;
class MCSection;
class MCContext;
class GlobalValue;
- class Mangler;
+ class StringRef;
class TargetMachine;
class TargetAsmInfo;
@@ -258,12 +257,14 @@ public:
/// getMachOSection - Return the MCSection for the specified mach-o section.
/// This requires the operands to be valid.
- const MCSection *getMachOSection(StringRef Segment, StringRef Section,
+ const MCSection *getMachOSection(const StringRef &Segment,
+ const StringRef &Section,
unsigned TypeAndAttributes,
SectionKind K) const {
return getMachOSection(Segment, Section, TypeAndAttributes, 0, K);
}
- const MCSection *getMachOSection(StringRef Segment, StringRef Section,
+ const MCSection *getMachOSection(const StringRef &Segment,
+ const StringRef &Section,
unsigned TypeAndAttributes,
unsigned Reserved2, SectionKind K) const;
diff --git a/lib/Target/TargetLoweringObjectFile.cpp b/lib/Target/TargetLoweringObjectFile.cpp
index 8f9058b..321af98 100644
--- a/lib/Target/TargetLoweringObjectFile.cpp
+++ b/lib/Target/TargetLoweringObjectFile.cpp
@@ -511,7 +511,7 @@ getSectionForConstant(SectionKind Kind) const {
const MCSection *TargetLoweringObjectFileMachO::
-getMachOSection(StringRef Segment, StringRef Section,
+getMachOSection(const StringRef &Segment, const StringRef &Section,
unsigned TypeAndAttributes,
unsigned Reserved2, SectionKind Kind) const {
// FIXME: UNIQUE HERE.