//
// The LLVM Compiler Infrastructure
//
-// This file was developed by James M. Laskey and is distributed under the
-// University of Illinois Open Source License. See LICENSE.TXT for details.
+// This file is distributed under the University of Illinois Open Source
+// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
//
// Forward declaration.
class PPCTargetMachine;
+
+ struct PPCTargetAsmInfo : public TargetAsmInfo {
+ explicit PPCTargetAsmInfo(const PPCTargetMachine &TM);
+ };
+
+ struct DarwinTargetAsmInfo : public PPCTargetAsmInfo {
+ explicit DarwinTargetAsmInfo(const PPCTargetMachine &TM);
+ };
- struct DarwinTargetAsmInfo : public TargetAsmInfo {
- DarwinTargetAsmInfo(const PPCTargetMachine &TM);
-
- /// getSectionForFunction - Return the section that we should emit the
- /// specified function body into. This defaults to 'TextSection'. This
- /// should most likely be overridden by the target to put linkonce/weak
- /// functions into special sections.
- virtual const char *getSectionForFunction(const Function &F) const;
+ struct LinuxTargetAsmInfo : public PPCTargetAsmInfo {
+ explicit LinuxTargetAsmInfo(const PPCTargetMachine &TM);
};
} // namespace llvm