This patch includes all missing functionality needed to provide first compilation of a simple program that just returns from a function. I've added a test case that checks for "ret" instruction printed in assembly output. Patch by Andrei Grischenko (andrei.l.grischenko@intel.com) Differential revision: https://reviews.llvm.org/D39688 llvm-svn: 320035
29 lines
831 B
C++
29 lines
831 B
C++
//===-- llvm/Target/Nios2TargetObjectFile.h - Nios2 Object Info -*- C++ -*-===//
|
|
//
|
|
// The LLVM Compiler Infrastructure
|
|
//
|
|
// This file is distributed under the University of Illinois Open Source
|
|
// License. See LICENSE.TXT for details.
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
#ifndef LLVM_LIB_TARGET_NIOS2_NIOS2TARGETOBJECTFILE_H
|
|
#define LLVM_LIB_TARGET_NIOS2_NIOS2TARGETOBJECTFILE_H
|
|
|
|
#include "Nios2TargetMachine.h"
|
|
#include "llvm/CodeGen/TargetLoweringObjectFileImpl.h"
|
|
|
|
namespace llvm {
|
|
|
|
class Nios2TargetObjectFile : public TargetLoweringObjectFileELF {
|
|
const Nios2TargetMachine *TM;
|
|
|
|
public:
|
|
Nios2TargetObjectFile() : TargetLoweringObjectFileELF() {}
|
|
|
|
void Initialize(MCContext &Ctx, const TargetMachine &TM) override;
|
|
};
|
|
} // end namespace llvm
|
|
|
|
#endif
|