Coverage Report

Created: 2017-10-03 07:32

/Users/buildslave/jenkins/sharedspace/clang-stage2-coverage-R@2/llvm/lib/Target/PowerPC/PPCMachineFunctionInfo.cpp
Line
Count
Source (jump to first uncovered line)
1
//===-- PPCMachineFunctionInfo.cpp - Private data used for PowerPC --------===//
2
//
3
//                     The LLVM Compiler Infrastructure
4
//
5
// This file is distributed under the University of Illinois Open Source
6
// License. See LICENSE.TXT for details.
7
//
8
//===----------------------------------------------------------------------===//
9
10
#include "PPCMachineFunctionInfo.h"
11
#include "llvm/ADT/Twine.h"
12
#include "llvm/IR/DataLayout.h"
13
#include "llvm/MC/MCContext.h"
14
15
using namespace llvm;
16
17
0
void PPCFunctionInfo::anchor() {}
18
19
18
MCSymbol *PPCFunctionInfo::getPICOffsetSymbol() const {
20
18
  const DataLayout &DL = MF.getDataLayout();
21
18
  return MF.getContext().getOrCreateSymbol(Twine(DL.getPrivateGlobalPrefix()) +
22
18
                                           Twine(MF.getFunctionNumber()) +
23
18
                                           "$poff");
24
18
}
25
26
565
MCSymbol *PPCFunctionInfo::getGlobalEPSymbol() const {
27
565
  const DataLayout &DL = MF.getDataLayout();
28
565
  return MF.getContext().getOrCreateSymbol(Twine(DL.getPrivateGlobalPrefix()) +
29
565
                                           "func_gep" +
30
565
                                           Twine(MF.getFunctionNumber()));
31
565
}
32
33
563
MCSymbol *PPCFunctionInfo::getLocalEPSymbol() const {
34
563
  const DataLayout &DL = MF.getDataLayout();
35
563
  return MF.getContext().getOrCreateSymbol(Twine(DL.getPrivateGlobalPrefix()) +
36
563
                                           "func_lep" +
37
563
                                           Twine(MF.getFunctionNumber()));
38
563
}
39
40
4
MCSymbol *PPCFunctionInfo::getTOCOffsetSymbol() const {
41
4
  const DataLayout &DL = MF.getDataLayout();
42
4
  return MF.getContext().getOrCreateSymbol(Twine(DL.getPrivateGlobalPrefix()) +
43
4
                                           "func_toc" +
44
4
                                           Twine(MF.getFunctionNumber()));
45
4
}