[llvm-commits] [llvm] r78860 - in /llvm/trunk: include/llvm/Target/TargetLoweringObjectFile.h lib/Target/TargetLoweringObjectFile.cpp

Chris Lattner sabre at nondot.org
Wed Aug 12 16:34:27 PDT 2009


Author: lattner
Date: Wed Aug 12 18:34:27 2009
New Revision: 78860

URL: http://llvm.org/viewvc/llvm-project?rev=78860&view=rev
Log:
reduce #includage

Modified:
    llvm/trunk/include/llvm/Target/TargetLoweringObjectFile.h
    llvm/trunk/lib/Target/TargetLoweringObjectFile.cpp

Modified: llvm/trunk/include/llvm/Target/TargetLoweringObjectFile.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Target/TargetLoweringObjectFile.h?rev=78860&r1=78859&r2=78860&view=diff

==============================================================================
--- llvm/trunk/include/llvm/Target/TargetLoweringObjectFile.h (original)
+++ llvm/trunk/include/llvm/Target/TargetLoweringObjectFile.h Wed Aug 12 18:34:27 2009
@@ -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 @@
 
   /// 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;
 

Modified: llvm/trunk/lib/Target/TargetLoweringObjectFile.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/TargetLoweringObjectFile.cpp?rev=78860&r1=78859&r2=78860&view=diff

==============================================================================
--- llvm/trunk/lib/Target/TargetLoweringObjectFile.cpp (original)
+++ llvm/trunk/lib/Target/TargetLoweringObjectFile.cpp Wed Aug 12 18:34:27 2009
@@ -511,7 +511,7 @@
 
 
 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.





More information about the llvm-commits mailing list