diff options
author | Chris Lattner <sabre@nondot.org> | 2009-07-20 17:47:48 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-07-20 17:47:48 +0000 |
commit | ff3d3adddbb6ef6ea4897b52d24c09e57596bb3c (patch) | |
tree | 4dfeab9b280507b2f352c63d139be892b447076c | |
parent | 13c5e35222afe0895f0c5e68aa9f22f134ea437a (diff) | |
download | external_llvm-ff3d3adddbb6ef6ea4897b52d24c09e57596bb3c.zip external_llvm-ff3d3adddbb6ef6ea4897b52d24c09e57596bb3c.tar.gz external_llvm-ff3d3adddbb6ef6ea4897b52d24c09e57596bb3c.tar.bz2 |
add some fixme's and cleanups. TargetAsmInfo shouldn't depend on VMCore eventually.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76439 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/llvm/Target/TargetAsmInfo.h | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/include/llvm/Target/TargetAsmInfo.h b/include/llvm/Target/TargetAsmInfo.h index 0ba79a4..11ba392 100644 --- a/include/llvm/Target/TargetAsmInfo.h +++ b/include/llvm/Target/TargetAsmInfo.h @@ -566,12 +566,14 @@ namespace llvm { /// call to be explicit llvm code if it wants to. This is useful for /// turning simple inline asms into LLVM intrinsics, which gives the /// compiler more information about the behavior of the code. +// FIXME: Move this to TargetLowering. virtual bool ExpandInlineAsm(CallInst *CI) const { return false; } /// emitUsedDirectiveFor - This hook allows targets to selectively decide /// not to emit the UsedDirective for some symbols in llvm.used. +// FIXME: REMOVE this (rdar://7071300) virtual bool emitUsedDirectiveFor(const GlobalValue *GV, Mangler *Mang) const { return (GV!=0); @@ -586,6 +588,7 @@ namespace llvm { /// SectionKindForGlobal - This hook allows the target to select proper /// section kind used for global emission. +// FIXME: Eliminate this. virtual SectionKind::Kind SectionKindForGlobal(const GlobalValue *GV) const; @@ -598,36 +601,37 @@ namespace llvm { /// SectionFlagsForGlobal - This hook allows the target to select proper /// section flags either for given global or for section. +// FIXME: Eliminate this. virtual unsigned SectionFlagsForGlobal(const GlobalValue *GV = NULL, const char* name = NULL) const; /// SectionForGlobal - This hooks returns proper section name for given /// global with all necessary flags and marks. +// FIXME: Eliminate this. virtual const Section* SectionForGlobal(const GlobalValue *GV) const; // Helper methods for SectionForGlobal +// FIXME: Eliminate this. virtual std::string UniqueSectionForGlobal(const GlobalValue* GV, SectionKind::Kind kind) const; - const std::string& getSectionFlags(unsigned Flags) const; + const std::string &getSectionFlags(unsigned Flags) const; virtual std::string printSectionFlags(unsigned flags) const { return ""; } +// FIXME: Eliminate this. virtual const Section* SelectSectionForGlobal(const GlobalValue *GV) const; - virtual const Section* SelectSectionForMachineConst(const Type *Ty) const; /// getSLEB128Size - Compute the number of bytes required for a signed /// leb128 value. - static unsigned getSLEB128Size(int Value); /// getULEB128Size - Compute the number of bytes required for an unsigned /// leb128 value. - static unsigned getULEB128Size(unsigned Value); - // Data directive accessors + // Data directive accessors. // const char *getData8bitsDirective(unsigned AS = 0) const { return AS == 0 ? Data8bitsDirective : getDataASDirective(8, AS); |