reduce #includage
authorChris Lattner <sabre@nondot.org>
Wed, 12 Aug 2009 23:34:27 +0000 (23:34 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 12 Aug 2009 23:34:27 +0000 (23:34 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78860 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Target/TargetLoweringObjectFile.h
lib/Target/TargetLoweringObjectFile.cpp

index 2ca196340d94767539a4349fdf52cc9bf91d2b91..b6710821ed20f3df26d0787fed35c799b6595f57 100644 (file)
 #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;
 
index 8f9058bfa5930ed0fdb716f8769d49702f8f11aa..321af98a74b31e97e755b918d532fdb9e7c5475e 100644 (file)
@@ -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.