blob: da9af49f944aa693783c98698fef06de179f4c59 [file] [log] [blame]
Dan Gohmanf38dc192008-01-30 16:35:31 +00001//===-- llvm/CodeGen/PseudoSourceValue.cpp ----------------------*- C++ -*-===//
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// This file implements the PseudoSourceValue class.
11//
12//===----------------------------------------------------------------------===//
13
14#include "llvm/CodeGen/PseudoSourceValue.h"
15#include "llvm/DerivedTypes.h"
16
17namespace llvm {
18 const PseudoSourceValue PseudoSourceValue::FPRel("FPRel");
19 const PseudoSourceValue PseudoSourceValue::SPRel("SPRel");
20 const PseudoSourceValue PseudoSourceValue::GPRel("GPRel");
21 const PseudoSourceValue PseudoSourceValue::TPRel("TPRel");
22 const PseudoSourceValue PseudoSourceValue::CPRel("CPRel");
23 const PseudoSourceValue PseudoSourceValue::JTRel("JTRel");
24
25 PseudoSourceValue::PseudoSourceValue(const char *_name) :
26 Value(PointerType::getUnqual(Type::Int8Ty), PseudoSourceValueVal),
27 name(_name) {
28 }
29
30 void PseudoSourceValue::print(std::ostream &OS) const {
31 OS << name;
32 }
33}