mirror of
https://github.com/llvm/llvm-project.git
synced 2025-05-07 06:16:06 +00:00

This reverts commit 94427af60c66ffea655a3084825c6c3a9deec1ad (relands 4646de5d75cfce3da4ddeffb6eb8e66e38238800 with fix). Use "return std::move(AsmStreamer);" instead of "return AsmStreamer;" in LVMTargetMachine::createMCStreamer. Unlike Clang, GCC seems having trouble inserting a implicit lvalue->rvalue conversion.
26 lines
1001 B
C++
26 lines
1001 B
C++
//===--- CodeGenPassBuilder.cpp --------------------------------------- ---===//
|
|
//
|
|
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
|
// See https://llvm.org/LICENSE.txt for license information.
|
|
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
//
|
|
// This file defines interfaces to access the target independent code
|
|
// generation passes provided by the LLVM backend.
|
|
//
|
|
//===---------------------------------------------------------------------===//
|
|
|
|
#include "llvm/CodeGen/CodeGenPassBuilder.h"
|
|
|
|
using namespace llvm;
|
|
|
|
namespace llvm {
|
|
#define DUMMY_MACHINE_MODULE_PASS(NAME, PASS_NAME, CONSTRUCTOR) \
|
|
AnalysisKey PASS_NAME::Key;
|
|
#include "llvm/CodeGen/MachinePassRegistry.def"
|
|
#define DUMMY_MACHINE_FUNCTION_PASS(NAME, PASS_NAME, CONSTRUCTOR) \
|
|
AnalysisKey PASS_NAME::Key;
|
|
#include "llvm/CodeGen/MachinePassRegistry.def"
|
|
} // namespace llvm
|