-void TargetMachine::setAsmVerbosityDefault(bool V) {
- AsmVerbosityDefault = V;
-}
-
-bool TargetMachine::getFunctionSections() {
- return FunctionSections;
-}
-
-bool TargetMachine::getDataSections() {
- return DataSections;
-}
-
-void TargetMachine::setFunctionSections(bool V) {
- FunctionSections = V;
+void TargetMachine::getNameWithPrefix(SmallVectorImpl<char> &Name,
+ const GlobalValue *GV, Mangler &Mang,
+ bool MayAlwaysUsePrivate) const {
+ if (MayAlwaysUsePrivate || !GV->hasPrivateLinkage()) {
+ // Simple case: If GV is not private, it is not important to find out if
+ // private labels are legal in this case or not.
+ Mang.getNameWithPrefix(Name, GV, false);
+ return;
+ }
+ const TargetLoweringObjectFile *TLOF = getObjFileLowering();
+ TLOF->getNameWithPrefix(Name, GV, Mang, *this);